summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiulio Camuffo <giulio.camuffo@jollamobile.com>2015-01-15 17:50:37 +0200
committerGiulio Camuffo <giulio.camuffo@jollamobile.com>2015-01-15 17:09:51 +0100
commit23bb7cad3166eedcd528da2d3c35377b506f80cc (patch)
treea2aa7fbdc859e27e0355512c1a1761c8d37a1934
parentfd6b6baed4ee1248ea82b15cf5f204025bcb7fac (diff)
Recreate the surface textures after the scenegraph invalidationv5.4.1
When the scenegraph is invalidated we delete the surfaces texture. Set the update flag to true so that when the scene graph is again initialized and starts to draw a frame the textures will be recreated. Change-Id: I2fb171e4bed517e48fa2311c22651150f3e605f7 Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>
-rw-r--r--src/compositor/compositor_api/qwaylandquicksurface.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compositor/compositor_api/qwaylandquicksurface.cpp b/src/compositor/compositor_api/qwaylandquicksurface.cpp
index 166514f7..40cd8b74 100644
--- a/src/compositor/compositor_api/qwaylandquicksurface.cpp
+++ b/src/compositor/compositor_api/qwaylandquicksurface.cpp
@@ -111,6 +111,7 @@ public:
{
delete texture;
texture = 0;
+ update = true;
}
QWaylandQuickSurface *surface;