Always do full updates when using GL.
authorSamuel Rødal <samuel.rodal@nokia.com>
Tue, 15 Mar 2011 09:49:02 +0000 (10:49 +0100)
committerSamuel Rødal <samuel.rodal@nokia.com>
Tue, 15 Mar 2011 09:49:02 +0000 (10:49 +0100)
examples/qwidget-compositor/main.cpp

index 02bccfc..781ee5d 100644 (file)
@@ -103,7 +103,11 @@ protected:
     }
 
     void surfaceDamaged(WaylandSurface *surface, const QRect &rect) {
+#ifdef QT_COMPOSITOR_WAYLAND_GL
+        update();
+#else
         update(rect.translated(surface->geometry().topLeft()));
+#endif
     }
 
     void paintEvent(QPaintEvent *) {