1.1 --- a/src/drivers/video_glx.c Tue Jan 15 20:50:23 2008 +0000
1.2 +++ b/src/drivers/video_glx.c Sat Jan 26 02:45:27 2008 +0000
1.4 static gboolean glsl_loaded = FALSE;
1.6 static int glx_version = 100;
1.7 -static XVisualInfo *glx_visual;
1.8 +static XVisualInfo *glx_visual = NULL;
1.9 static GLXFBConfig glx_fbconfig;
1.10 static GLXContext glx_context = NULL;
1.11 static gboolean glx_is_initialized = FALSE;
1.13 glx_pbuffer_supported = (glx_version >= 103 ||
1.14 isServerGLXExtensionSupported(display, screen,
1.15 "GLX_SGIX_pbuffer") );
1.18 if( glx_fbconfig_supported ) {
1.20 int fb_attribs[] = { GLX_DRAWABLE_TYPE,
1.21 @@ -125,6 +125,11 @@
1.22 int attribs[] = { GLX_RGBA, GLX_DEPTH_SIZE, 24, 0 };
1.23 glx_visual = glXChooseVisual( display, screen, attribs );
1.26 + if( glx_visual == NULL ) {
1.30 glx_is_initialized = TRUE;