comparison src/video/x11/SDL_x11video.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 54fac87e1f34
children 81773a1eac83
comparison
equal deleted inserted replaced
3056:a434fe6360df 3057:089a77aebb7d
188 device->DestroyWindow = X11_DestroyWindow; 188 device->DestroyWindow = X11_DestroyWindow;
189 device->GetWindowWMInfo = X11_GetWindowWMInfo; 189 device->GetWindowWMInfo = X11_GetWindowWMInfo;
190 #ifdef SDL_VIDEO_OPENGL_GLX 190 #ifdef SDL_VIDEO_OPENGL_GLX
191 device->GL_LoadLibrary = X11_GL_LoadLibrary; 191 device->GL_LoadLibrary = X11_GL_LoadLibrary;
192 device->GL_GetProcAddress = X11_GL_GetProcAddress; 192 device->GL_GetProcAddress = X11_GL_GetProcAddress;
193 device->GL_UnloadLibrary = X11_GL_UnloadLibrary;
193 device->GL_CreateContext = X11_GL_CreateContext; 194 device->GL_CreateContext = X11_GL_CreateContext;
194 device->GL_MakeCurrent = X11_GL_MakeCurrent; 195 device->GL_MakeCurrent = X11_GL_MakeCurrent;
195 device->GL_SetSwapInterval = X11_GL_SetSwapInterval; 196 device->GL_SetSwapInterval = X11_GL_SetSwapInterval;
196 device->GL_GetSwapInterval = X11_GL_GetSwapInterval; 197 device->GL_GetSwapInterval = X11_GL_GetSwapInterval;
197 device->GL_SwapWindow = X11_GL_SwapWindow; 198 device->GL_SwapWindow = X11_GL_SwapWindow;