Removed extraneous glBind calls, added FPS debugging info
--HG-- extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4040
This commit is contained in:
@@ -209,14 +209,9 @@
|
||||
[self createFramebuffers];
|
||||
}
|
||||
|
||||
glBindFramebuffer(GL_FRAMEBUFFER, viewFramebuffer);
|
||||
//glBindFramebuffer(GL_FRAMEBUFFER, viewFramebuffer);
|
||||
|
||||
glViewport(0, 0, backingWidth, backingHeight);
|
||||
|
||||
/*
|
||||
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
@@ -226,7 +221,7 @@
|
||||
|
||||
if (context)
|
||||
{
|
||||
glBindRenderbuffer(GL_RENDERBUFFER, viewRenderbuffer);
|
||||
//glBindRenderbuffer(GL_RENDERBUFFER, viewRenderbuffer);
|
||||
|
||||
success = [context presentRenderbuffer:GL_RENDERBUFFER];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user