From 55015eb92704523c544356752724d47b3a2f88a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Tue, 21 Nov 2006 20:11:40 +0000 Subject: [PATCH] Actually detect if the rendering is really direct. svn path=/branches/work/kwin_composite/; revision=606789 --- scene_opengl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scene_opengl.cpp b/scene_opengl.cpp index 90273b4654..482ef8b5d6 100644 --- a/scene_opengl.cpp +++ b/scene_opengl.cpp @@ -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