Convert to OpenGL coordinates.
svn path=/branches/work/kwin_composite/; revision=606378
This commit is contained in:
parent
376fd954c3
commit
3e534d7d75
1 changed files with 5 additions and 1 deletions
|
@ -460,7 +460,11 @@ void SceneOpenGL::flushBuffer( int mask, const QRegion& damage )
|
|||
if( glXCopySubBuffer )
|
||||
{
|
||||
foreach( QRect r, damage.rects())
|
||||
glXCopySubBuffer( display(), glxbuffer, r.x(), r.y(), r.width(), r.height());
|
||||
{
|
||||
// convert to OpenGL coordinates
|
||||
int y = displayHeight() - r.y() - r.height();
|
||||
glXCopySubBuffer( display(), glxbuffer, r.x(), y, r.width(), r.height());
|
||||
}
|
||||
}
|
||||
else
|
||||
{ // no idea why glScissor() is used, but Compiz has it and it doesn't seem to hurt
|
||||
|
|
Loading…
Reference in a new issue