src/video/cocoa/SDL_cocoaopengl.m
changeset 3688 6512cba48440
parent 3685 64ce267332c6
child 4498 3d91e31fcf71
equal deleted inserted replaced
3687:8e5186a99af4 3688:6512cba48440
   210         NSOpenGLContext *nscontext = (NSOpenGLContext *)context;
   210         NSOpenGLContext *nscontext = (NSOpenGLContext *)context;
   211 
   211 
   212         if (window->flags & SDL_WINDOW_FULLSCREEN) {
   212         if (window->flags & SDL_WINDOW_FULLSCREEN) {
   213             [nscontext setFullScreen];
   213             [nscontext setFullScreen];
   214         } else {
   214         } else {
   215             [nscontext setView:[windowdata->window contentView]];
   215             [nscontext setView:[windowdata->nswindow contentView]];
   216             [nscontext update];
   216             [nscontext update];
   217         }
   217         }
   218         [nscontext makeCurrentContext];
   218         [nscontext makeCurrentContext];
   219     } else {
   219     } else {
   220         [NSOpenGLContext clearCurrentContext];
   220         [NSOpenGLContext clearCurrentContext];