diff --git a/cocos2dx/platform/ios/EAGLView.mm b/cocos2dx/platform/ios/EAGLView.mm index 9f8f4c8331..64ea03991e 100644 --- a/cocos2dx/platform/ios/EAGLView.mm +++ b/cocos2dx/platform/ios/EAGLView.mm @@ -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();