- (void) setContext:(EAGLContext*) ctx {
context = ctx;
[EAGLContext setCurrentContext:ctx];
-#if 0
- CGRect newRect = [self frame];
- if ( /* (CGRectEqualToRect(newRect, oldRect) == NO && ![self isHidden] && newRect.size.width > 0 && newRect.size.height > 0 )
- || */ viewFramebuffer == 0 )
+
+ if ( viewFramebuffer == 0 )
{
[self destroyFramebuffer];
[self createFramebuffer];
}
-#endif
+
glBindFramebufferOES(GL_FRAMEBUFFER_OES, viewFramebuffer);
}