diff src/video/x11/SDL_x11opengl.h @ 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 f7b03b6838cb
line wrap: on
line diff
--- a/src/video/x11/SDL_x11opengl.h	Sun Feb 08 15:35:06 2009 +0000
+++ b/src/video/x11/SDL_x11opengl.h	Mon Feb 09 05:32:12 2009 +0000
@@ -30,7 +30,6 @@
 
 struct SDL_GLDriverData
 {
-    int initialized;
     SDL_bool HAS_GLX_EXT_visual_rating;
 
     void *(*glXGetProcAddress) (const GLubyte * procName);
@@ -58,8 +57,7 @@
 /* OpenGL functions */
 extern int X11_GL_LoadLibrary(_THIS, const char *path);
 extern void *X11_GL_GetProcAddress(_THIS, const char *proc);
-extern int X11_GL_Initialize(_THIS);
-extern void X11_GL_Shutdown(_THIS);
+extern void X11_GL_UnloadLibrary(_THIS);
 extern XVisualInfo *X11_GL_GetVisual(_THIS, Display * display, int screen);
 extern SDL_GLContext X11_GL_CreateContext(_THIS, SDL_Window * window);
 extern int X11_GL_MakeCurrent(_THIS, SDL_Window * window,