src/video/cocoa/SDL_cocoawindow.m
changeset 3057 089a77aebb7d
parent 2859 99210400e8b9
child 3075 4c28a9655933
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Sun Feb 08 15:35:06 2009 +0000
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Mon Feb 09 05:32:12 2009 +0000
     1.3 @@ -422,14 +422,6 @@
     1.4          [nswindow release];
     1.5          return -1;
     1.6      }
     1.7 -#ifdef SDL_VIDEO_OPENGL_CGL
     1.8 -    if (window->flags & SDL_WINDOW_OPENGL) {
     1.9 -        if (Cocoa_GL_SetupWindow(_this, window) < 0) {
    1.10 -            Cocoa_DestroyWindow(_this, window);
    1.11 -            return -1;
    1.12 -        }
    1.13 -    }
    1.14 -#endif
    1.15      return 0;
    1.16  }
    1.17  
    1.18 @@ -586,11 +578,6 @@
    1.19      SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
    1.20  
    1.21      if (data) {
    1.22 -#ifdef SDL_VIDEO_OPENGL_CGL
    1.23 -        if (window->flags & SDL_WINDOW_OPENGL) {
    1.24 -            Cocoa_GL_CleanupWindow(_this, window);
    1.25 -        }
    1.26 -#endif
    1.27          [data->listener close];
    1.28          [data->listener release];
    1.29          if (data->created) {