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:
parent
d9557f50d1
commit
9e7870dea5
1 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue