src/video/cocoa/SDL_cocoawindow.m
changeset 1952 420716272158
parent 1951 7177581dc9fa
child 1956 ba0d62354872
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Thu Jul 27 06:53:23 2006 +0000
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Fri Jul 28 08:43:17 2006 +0000
     1.3 @@ -385,7 +385,7 @@
     1.4          [nswindow release];
     1.5          return -1;
     1.6      }
     1.7 -#ifdef SDL_VIDEO_OPENGL
     1.8 +#ifdef SDL_VIDEO_OPENGL_CGL
     1.9      if (window->flags & SDL_WINDOW_OPENGL) {
    1.10          if (Cocoa_GL_SetupWindow(_this, window) < 0) {
    1.11              Cocoa_DestroyWindow(_this, window);
    1.12 @@ -535,7 +535,7 @@
    1.13      SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
    1.14  
    1.15      if (data) {
    1.16 -#ifdef SDL_VIDEO_OPENGL
    1.17 +#ifdef SDL_VIDEO_OPENGL_CGL
    1.18          if (window->flags & SDL_WINDOW_OPENGL) {
    1.19              Cocoa_GL_CleanupWindow(_this, window);
    1.20          }