src/video/cocoa/SDL_cocoaopengl.m
changeset 3685 64ce267332c6
parent 3571 19691cebb866
child 3688 6512cba48440
     1.1 --- a/src/video/cocoa/SDL_cocoaopengl.m	Thu Jan 21 05:49:41 2010 +0000
     1.2 +++ b/src/video/cocoa/SDL_cocoaopengl.m	Thu Jan 21 06:21:52 2010 +0000
     1.3 @@ -82,7 +82,7 @@
     1.4  Cocoa_GL_CreateContext(_THIS, SDL_Window * window)
     1.5  {
     1.6      NSAutoreleasePool *pool;
     1.7 -    SDL_VideoDisplay *display = SDL_GetDisplayFromWindow(window);
     1.8 +    SDL_VideoDisplay *display = window->display;
     1.9      SDL_DisplayData *displaydata = (SDL_DisplayData *)display->driverdata;
    1.10      NSOpenGLPixelFormatAttribute attr[32];
    1.11      NSOpenGLPixelFormat *fmt;