Disable attempt at saving the Cocoa GL context for now. SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Fri, 30 Dec 2011 16:28:41 -0500
branchSDL-1.2
changeset 6134 d041dcb1951d
parent 6133 a59b59cbe3d9
child 6137 4720145f848b
Disable attempt at saving the Cocoa GL context for now.
src/video/quartz/SDL_QuartzVideo.m
--- a/src/video/quartz/SDL_QuartzVideo.m	Fri Dec 02 16:10:55 2011 -0500
+++ b/src/video/quartz/SDL_QuartzVideo.m	Fri Dec 30 16:28:41 2011 -0500
@@ -1209,7 +1209,12 @@
                                     Uint32 flags)
 {
     /* Don't throw away the GL context if we can just resize the current one. */
+#if 0  /* !!! FIXME: half-finished side project. Reenable this if you ever debug the corner cases. */
     const BOOL save_gl = ( (video_set == SDL_TRUE) && ((flags & SDL_OPENGL) == (current->flags & SDL_OPENGL)) && (bpp == current->format->BitsPerPixel) );
+#else
+    const BOOL save_gl = NO;
+#endif
+
     NSOpenGLContext *glctx = gl_context;
     SDL_Surface* retval = NULL;