Double-buffering using OpenGL doesn't work and I have no idea why.

svn path=/branches/work/kwin_composite/; revision=603138
This commit is contained in:
Luboš Luňák 2006-11-07 22:45:56 +00:00
parent 4110fc1c3a
commit 8d777cb1f7

View file

@ -258,7 +258,7 @@ void SceneOpenGL::initBuffer()
{ {
XWindowAttributes attrs; XWindowAttributes attrs;
XGetWindowAttributes( display(), rootWindow(), &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 // root window is double-buffered, paint directly to it
// TODO no need to use overlay? // TODO no need to use overlay?
@ -266,7 +266,7 @@ void SceneOpenGL::initBuffer()
buffer = rootWindow(); buffer = rootWindow();
glxbuffer = glXCreateWindow( display(), fbcbuffer, buffer, NULL ); 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 { // we have overlay, try to create double-buffered window in it
XVisualInfo* visual = glXGetVisualFromFBConfig( display(), fbcbuffer ); XVisualInfo* visual = glXGetVisualFromFBConfig( display(), fbcbuffer );
kDebug() << "Using overlay visual 0x" << QString::number( visual->visualid ) << endl; kDebug() << "Using overlay visual 0x" << QString::number( visual->visualid ) << endl;