comparison 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
comparison
equal deleted inserted replaced
3056:a434fe6360df 3057:089a77aebb7d
159 device->DestroyWindow = WIN_DestroyWindow; 159 device->DestroyWindow = WIN_DestroyWindow;
160 device->GetWindowWMInfo = WIN_GetWindowWMInfo; 160 device->GetWindowWMInfo = WIN_GetWindowWMInfo;
161 #ifdef SDL_VIDEO_OPENGL_WGL 161 #ifdef SDL_VIDEO_OPENGL_WGL
162 device->GL_LoadLibrary = WIN_GL_LoadLibrary; 162 device->GL_LoadLibrary = WIN_GL_LoadLibrary;
163 device->GL_GetProcAddress = WIN_GL_GetProcAddress; 163 device->GL_GetProcAddress = WIN_GL_GetProcAddress;
164 device->GL_UnloadLibrary = WIN_GL_UnloadLibrary;
164 device->GL_CreateContext = WIN_GL_CreateContext; 165 device->GL_CreateContext = WIN_GL_CreateContext;
165 device->GL_MakeCurrent = WIN_GL_MakeCurrent; 166 device->GL_MakeCurrent = WIN_GL_MakeCurrent;
166 device->GL_SetSwapInterval = WIN_GL_SetSwapInterval; 167 device->GL_SetSwapInterval = WIN_GL_SetSwapInterval;
167 device->GL_GetSwapInterval = WIN_GL_GetSwapInterval; 168 device->GL_GetSwapInterval = WIN_GL_GetSwapInterval;
168 device->GL_SwapWindow = WIN_GL_SwapWindow; 169 device->GL_SwapWindow = WIN_GL_SwapWindow;