Actually detect if the rendering is really direct.

svn path=/branches/work/kwin_composite/; revision=606789
This commit is contained in:
Luboš Luňák 2006-11-21 20:11:40 +00:00
parent f551826ae2
commit 55015eb927

View file

@ -189,7 +189,8 @@ SceneOpenGL::SceneOpenGL( Workspace* ws )
glMatrixMode( GL_MODELVIEW );
glLoadIdentity();
checkGLError( "Init" );
kDebug( 1212 ) << "DB:" << db << ", TFP:" << tfp_mode << ", SHM:" << shm_mode << endl;
kDebug( 1212 ) << "DB:" << db << ", TFP:" << tfp_mode << ", SHM:" << shm_mode
<< ", Direct:" << bool( glXIsDirect( display(), ctxbuffer )) << endl;
}
SceneOpenGL::~SceneOpenGL()
@ -327,7 +328,6 @@ void SceneOpenGL::initRenderingContext()
ctxdrawable = glXCreateNewContext( display(), fbcdrawable, GLX_RGBA_TYPE, ctxbuffer,
direct_rendering ? GL_TRUE : GL_FALSE );
}
kDebug( 1212 ) << "Direct rendering:" << direct_rendering << endl;
}
// create destination buffer