From 8d777cb1f7158099ab172a5a8ea140e04342a0fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Tue, 7 Nov 2006 22:45:56 +0000 Subject: [PATCH] Double-buffering using OpenGL doesn't work and I have no idea why. svn path=/branches/work/kwin_composite/; revision=603138 --- scene_opengl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scene_opengl.cpp b/scene_opengl.cpp index 613b9680b8..e71acc26e0 100644 --- a/scene_opengl.cpp +++ b/scene_opengl.cpp @@ -258,7 +258,7 @@ void SceneOpenGL::initBuffer() { XWindowAttributes attrs; XGetWindowAttributes( display(), rootWindow(), &attrs ); - if( findConfig( root_db_attrs, &fbcbuffer, XVisualIDFromVisual( attrs.visual ))) + if( false && findConfig( root_db_attrs, &fbcbuffer, XVisualIDFromVisual( attrs.visual ))) { // root window is double-buffered, paint directly to it // TODO no need to use overlay? @@ -266,7 +266,7 @@ void SceneOpenGL::initBuffer() buffer = rootWindow(); glxbuffer = glXCreateWindow( display(), fbcbuffer, buffer, NULL ); } - else if( findConfig( buffer_db_attrs, &fbcbuffer ) && wspace->createOverlay()) + else if( false && findConfig( buffer_db_attrs, &fbcbuffer ) && wspace->createOverlay()) { // we have overlay, try to create double-buffered window in it XVisualInfo* visual = glXGetVisualFromFBConfig( display(), fbcbuffer ); kDebug() << "Using overlay visual 0x" << QString::number( visual->visualid ) << endl;