src/video/quartz/SDL_QuartzVideo.m
changeset 1181 49d3efec6651
parent 1160 72c6c3e5bb85
child 1183 634d85aefc8c
--- a/src/video/quartz/SDL_QuartzVideo.m	Tue Nov 22 07:10:07 2005 +0000
+++ b/src/video/quartz/SDL_QuartzVideo.m	Tue Nov 22 08:21:39 2005 +0000
@@ -1489,6 +1489,12 @@
     
     QZ_UnsetVideoMode (this);
     CGPaletteRelease (palette);
+
+    if (opengl_bundle) {
+        CFRelease(opengl_bundle);
+        opengl_bundle = NULL;
+    }
+    this->gl_config.driver_loaded = 0;
 }
 
 #if 0 /* Not used (apparently, it's really slow) */