diff src/video/cocoa/SDL_cocoavideo.m @ 3057:089a77aebb7d

Added test program for SDL_CreateWindowFrom() Make sure OpenGL library is loaded before working with OpenGL windows, even those created with SDL_CreateWindowFrom()
author Sam Lantinga <slouken@libsdl.org>
date Mon, 09 Feb 2009 05:32:12 +0000
parents 99210400e8b9
children fef1a835af43 00cace2d9080
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoavideo.m	Sun Feb 08 15:35:06 2009 +0000
+++ b/src/video/cocoa/SDL_cocoavideo.m	Mon Feb 09 05:32:12 2009 +0000
@@ -93,6 +93,7 @@
 #ifdef SDL_VIDEO_OPENGL_CGL
     device->GL_LoadLibrary = Cocoa_GL_LoadLibrary;
     device->GL_GetProcAddress = Cocoa_GL_GetProcAddress;
+    device->GL_UnloadLibrary = Cocoa_GL_UnloadLibrary;
     device->GL_CreateContext = Cocoa_GL_CreateContext;
     device->GL_MakeCurrent = Cocoa_GL_MakeCurrent;
     device->GL_SetSwapInterval = Cocoa_GL_SetSwapInterval;