]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/iphone/glcanvas.mm
Use the best instead of current page size in OS X preferences dialog.
[wxWidgets.git] / src / osx / iphone / glcanvas.mm
index bfe0ce8bc640775f1147cfb39300283a4e95e795..0c7d8418be5a6d952f951fc6db1f992275c356e6 100644 (file)
 - (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);
 }