From 23bb7cad3166eedcd528da2d3c35377b506f80cc Mon Sep 17 00:00:00 2001 From: Giulio Camuffo Date: Thu, 15 Jan 2015 17:50:37 +0200 Subject: Recreate the surface textures after the scenegraph invalidation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/compositor/compositor_api/qwaylandquicksurface.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compositor/compositor_api/qwaylandquicksurface.cpp b/src/compositor/compositor_api/qwaylandquicksurface.cpp index 166514f73..40cd8b749 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; -- cgit v1.2.3