src/video/cocoa/SDL_cocoaopengl.m
changeset 6260 fd494c5f305b
parent 6138 4c64952a58fb
child 6382 64d54101773a
     1.1 --- a/src/video/cocoa/SDL_cocoaopengl.m	Sun Jan 22 19:47:33 2012 -0500
     1.2 +++ b/src/video/cocoa/SDL_cocoaopengl.m	Sun Jan 22 21:46:06 2012 -0500
     1.3 @@ -200,14 +200,16 @@
     1.4          SDL_WindowData *windowdata = (SDL_WindowData *)window->driverdata;
     1.5          NSOpenGLContext *nscontext = (NSOpenGLContext *)context;
     1.6  
     1.7 +        if (window->flags & SDL_WINDOW_SHOWN) {
     1.8  #ifndef FULLSCREEN_TOGGLEABLE
     1.9 -        if (window->flags & SDL_WINDOW_FULLSCREEN) {
    1.10 -            [nscontext setFullScreen];
    1.11 -        } else
    1.12 +            if (window->flags & SDL_WINDOW_FULLSCREEN) {
    1.13 +                [nscontext setFullScreen];
    1.14 +            } else
    1.15  #endif
    1.16 -        {
    1.17 -            [nscontext setView:[windowdata->nswindow contentView]];
    1.18 -            [nscontext update];
    1.19 +            {
    1.20 +                [nscontext setView:[windowdata->nswindow contentView]];
    1.21 +                [nscontext update];
    1.22 +            }
    1.23          }
    1.24          [nscontext makeCurrentContext];
    1.25      } else {