From 5e590b0611db220990b63e409ee813710002303e Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 30 Dec 2011 16:28:41 -0500 Subject: [PATCH] Disable attempt at saving the Cocoa GL context for now. --HG-- branch : SDL-1.2 --- src/video/quartz/SDL_QuartzVideo.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/video/quartz/SDL_QuartzVideo.m b/src/video/quartz/SDL_QuartzVideo.m index c1a3c0c32..e5541b2b7 100644 --- a/src/video/quartz/SDL_QuartzVideo.m +++ b/src/video/quartz/SDL_QuartzVideo.m @@ -1209,7 +1209,12 @@ static SDL_Surface* QZ_SetVideoMode(_THIS, SDL_Surface *current, 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;