src/video/cocoa/SDL_cocoaopengl.m
changeset 7347 b4f6a86e8523
parent 7152 e9ed46195235
child 7389 361d1a0c90f6
     1.1 --- a/src/video/cocoa/SDL_cocoaopengl.m	Fri Jul 05 01:09:27 2013 -0400
     1.2 +++ b/src/video/cocoa/SDL_cocoaopengl.m	Fri Jul 05 01:18:18 2013 -0400
     1.3 @@ -223,7 +223,7 @@
     1.4              [nscontext setFullScreen];
     1.5          } else
     1.6  #endif
     1.7 -        {
     1.8 +        if ([nscontext view] != [windowdata->nswindow contentView]) {
     1.9              [nscontext setView:[windowdata->nswindow contentView]];
    1.10              [nscontext update];
    1.11          }