src/video/cocoa/SDL_cocoaopengl.m
changeset 5246 58265e606e4e
parent 4925 514f811a4887
child 5249 7a963be087ef
     1.1 --- a/src/video/cocoa/SDL_cocoaopengl.m	Thu Feb 10 14:36:09 2011 -0800
     1.2 +++ b/src/video/cocoa/SDL_cocoaopengl.m	Thu Feb 10 14:44:25 2011 -0800
     1.3 @@ -72,7 +72,7 @@
     1.4  Cocoa_GL_CreateContext(_THIS, SDL_Window * window)
     1.5  {
     1.6      NSAutoreleasePool *pool;
     1.7 -    SDL_VideoDisplay *display = window->display;
     1.8 +    SDL_VideoDisplay *display = SDL_GetDisplayForWindow(window);
     1.9      SDL_DisplayData *displaydata = (SDL_DisplayData *)display->driverdata;
    1.10      NSOpenGLPixelFormatAttribute attr[32];
    1.11      NSOpenGLPixelFormat *fmt;