diff --git a/compositingprefs.cpp b/compositingprefs.cpp index ec7178c385..d21453f452 100644 --- a/compositingprefs.cpp +++ b/compositingprefs.cpp @@ -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();