Skip to content

Commit

Permalink
Disable attempt at saving the Cocoa GL context for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Dec 30, 2011
1 parent 1848ce1 commit d5f2dee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/video/quartz/SDL_QuartzVideo.m
Expand Up @@ -1209,7 +1209,12 @@ other blitting while waiting on the VBL (and hence results in higher framerates)
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;

Expand Down

0 comments on commit d5f2dee

Please sign in to comment.