Abort if there are problems with setting up OpenGL context.
svn path=/branches/work/kwin_composite/; revision=603712
This commit is contained in:
parent
91872885ff
commit
1cc603cf75
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue