Don't try to use glx when it's not available.

Fixes crash when glx is there at compile time but not at runtime.

svn path=/trunk/KDE/kdebase/workspace/; revision=717942
This commit is contained in:
Rivo Laks 2007-09-27 19:04:18 +00:00
parent d9557f50d1
commit 9e7870dea5

View file

@ -58,6 +58,12 @@ void CompositingPrefs::detect()
}
#ifdef HAVE_OPENGL
if( !Extensions::glxAvailable())
{
kDebug( 1212 ) << "No GLX available";
return;
}
// remember and later restore active context
GLXContext oldcontext = glXGetCurrentContext();
GLXDrawable olddrawable = glXGetCurrentDrawable();