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:
parent
4110fc1c3a
commit
8d777cb1f7
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue