src/video/quartz/SDL_QuartzVideo.m
changeset 1189 c96b326b90ba
parent 1183 634d85aefc8c
child 1212 7663bb0f52c7
--- a/src/video/quartz/SDL_QuartzVideo.m	Wed Nov 23 07:07:19 2005 +0000
+++ b/src/video/quartz/SDL_QuartzVideo.m	Wed Nov 23 07:23:48 2005 +0000
@@ -23,7 +23,6 @@
 #include "SDL_QuartzVideo.h"
 #include "SDL_QuartzWindow.h"
 
-
 /* 
     Add methods to get at private members of NSScreen. 
     Since there is a bug in Apple's screen switching code
@@ -1495,9 +1494,9 @@
     QZ_UnsetVideoMode (this);
     CGPaletteRelease (palette);
 
-    if (opengl_bundle) {
-        CFRelease(opengl_bundle);
-        opengl_bundle = NULL;
+    if (opengl_library) {
+        SDL_UnloadObject(opengl_library);
+        opengl_library = NULL;
     }
     this->gl_config.driver_loaded = 0;
 }