Prevent flipped rendering in QML compositor.
authorSamuel Rødal <samuel.rodal@nokia.com>
Tue, 19 Apr 2011 13:59:39 +0000 (15:59 +0200)
committerSamuel Rødal <samuel.rodal@nokia.com>
Tue, 19 Apr 2011 13:59:51 +0000 (15:59 +0200)
src/qt-compositor/compositor_api/waylandsurfaceitem.cpp

index 02df7e9..149dde8 100644 (file)
@@ -184,7 +184,7 @@ QSGNode *WaylandSurfaceItem::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeDa
     }
     node->setTexture(m_texture);
 
-    node->setRect(QRectF(0, height(), width(), -height()));
+    node->setRect(QRectF(0, 0, width(), height()));
     node->setFiltering(smooth() ? QSGTexture::Linear : QSGTexture::Nearest);
 
     return node;