Abort if there are problems with setting up OpenGL context.

svn path=/branches/work/kwin_composite/; revision=603712
This commit is contained in:
Luboš Luňák 2006-11-09 20:38:14 +00:00
parent 91872885ff
commit 1cc603cf75

View file

@ -191,7 +191,8 @@ SceneOpenGL::SceneOpenGL( Workspace* ws )
<< QString::number( vis_drawable, 16 ) << endl;
ctxbuffer = glXCreateNewContext( display(), fbcbuffer, GLX_RGBA_TYPE, NULL, GL_FALSE );
ctxdrawable = glXCreateNewContext( display(), fbcdrawable, GLX_RGBA_TYPE, ctxbuffer, GL_FALSE );
glXMakeContextCurrent( display(), glxbuffer, glxbuffer, ctxbuffer );
if( !glXMakeContextCurrent( display(), glxbuffer, glxbuffer, ctxbuffer ) )
assert( false );
// Initialize OpenGL
initGL();