Mercurial > sdl-ios-xcode
diff src/video/quartz/SDL_QuartzVideo.m @ 1181:49d3efec6651
Quartz driver OpenGL updates:
Driver can now open whatever library is specified in SDL_GL_LoadLibrary()
call (previously, it ignored this parameter), and uses the default system
library when NULL is specified.
Also, library is loaded once in SDL_GL_LoadLibrary() and not every call to
SDL_GL_GetProcAddress().
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Tue, 22 Nov 2005 08:21:39 +0000 |
parents | 72c6c3e5bb85 |
children | 634d85aefc8c |
line wrap: on
line diff
--- 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) */