mirror of https://github.com/axmolengine/axmol.git
fix GL_EXT_discard_framebuffer always disable in EAGLView.mm (fix compile fail on early iOS SDK 4.0);
This commit is contained in:
parent
83c99b5b1c
commit
408b81173d
|
@ -237,7 +237,11 @@ static CCEAGLView *view = 0;
|
|||
|
||||
context_ = [renderer_ context];
|
||||
|
||||
discardFramebufferSupported_ = (BOOL)GL_EXT_discard_framebuffer;
|
||||
#if GL_EXT_discard_framebuffer == 1
|
||||
discardFramebufferSupported_ = YES;
|
||||
#else
|
||||
discardFramebufferSupported_ = NO;
|
||||
#endif
|
||||
|
||||
CHECK_GL_ERROR();
|
||||
|
||||
|
|
Loading…
Reference in New Issue