diff src/video/win32/SDL_win32video.c @ 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 8cc00819c8d6
children 6338b7f2d024
line wrap: on
line diff
--- a/src/video/win32/SDL_win32video.c	Sun Feb 08 15:35:06 2009 +0000
+++ b/src/video/win32/SDL_win32video.c	Mon Feb 09 05:32:12 2009 +0000
@@ -161,6 +161,7 @@
 #ifdef SDL_VIDEO_OPENGL_WGL
     device->GL_LoadLibrary = WIN_GL_LoadLibrary;
     device->GL_GetProcAddress = WIN_GL_GetProcAddress;
+    device->GL_UnloadLibrary = WIN_GL_UnloadLibrary;
     device->GL_CreateContext = WIN_GL_CreateContext;
     device->GL_MakeCurrent = WIN_GL_MakeCurrent;
     device->GL_SetSwapInterval = WIN_GL_SetSwapInterval;