fix GL_EXT_discard_framebuffer always disable in EAGLView.mm (fix compile fail on early iOS SDK 4.0);

This commit is contained in:
bmanGH 2013-10-13 14:05:51 +08:00
parent 83c99b5b1c
commit 408b81173d
1 changed files with 5 additions and 1 deletions

View File

@ -237,7 +237,11 @@ static CCEAGLView *view = 0;
context_ = [renderer_ context]; context_ = [renderer_ context];
discardFramebufferSupported_ = (BOOL)GL_EXT_discard_framebuffer; #if GL_EXT_discard_framebuffer == 1
discardFramebufferSupported_ = YES;
#else
discardFramebufferSupported_ = NO;
#endif
CHECK_GL_ERROR(); CHECK_GL_ERROR();