fix GL_EXT_discard_framebuffer always disable in EAGLView.mm;

This commit is contained in:
bmanGH 2013-10-13 14:01:56 +08:00
parent 06ca84ba68
commit 83c99b5b1c
1 changed files with 2 additions and 3 deletions

View File

@ -237,8 +237,7 @@ static CCEAGLView *view = 0;
context_ = [renderer_ context];
//discardFramebufferSupported_ = [[Configuration sharedConfiguration] supportsDiscardFramebuffer];
discardFramebufferSupported_ = (BOOL)GL_EXT_discard_framebuffer;
CHECK_GL_ERROR();
@ -288,7 +287,7 @@ static CCEAGLView *view = 0;
glResolveMultisampleFramebufferAPPLE();
}
if( discardFramebufferSupported_)
if(discardFramebufferSupported_)
{
if (multiSampling_)
{