diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2011-03-15 10:49:02 +0100 |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2011-03-15 10:49:02 +0100 |
commit | 3c28a3be5edb2880d2458bbf2fe673ad8bf95908 (patch) | |
tree | d8a7f6462d7aa0596068f45607152ff9bfa05ab0 /examples | |
parent | 60a9ce9da8f566280f2bb163e327fec601a49494 (diff) |
Always do full updates when using GL.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/qwidget-compositor/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/qwidget-compositor/main.cpp b/examples/qwidget-compositor/main.cpp index 02bccfcc4..781ee5dff 100644 --- a/examples/qwidget-compositor/main.cpp +++ b/examples/qwidget-compositor/main.cpp @@ -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 *) { |