Avoid showing garbage when resizing the rendercontrol example
authorLaszlo Agocs <laszlo.agocs@theqtcompany.com>
Thu, 16 Apr 2015 10:47:42 +0000 (12:47 +0200)
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>
Tue, 28 Apr 2015 15:01:26 +0000 (15:01 +0000)
The threaded variant was working well since that triggers a render
when resizing. The single threaded version lacked this and this
resulted in showing garbage on OS X at least since the new FBO had
undefined contents. Avoid this.

Task-number: QTBUG-45613
Change-Id: Ibb3d3f7640bab5da913df1c0c63cc3a3aaafb140
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
examples/quick/rendercontrol/window_singlethreaded.cpp

index 5377c5637604772839d5b859431cee4bb1d5fd9a..fb6dc2d223ed0ce97c8f758c9026ae06c81ea76f 100644 (file)
@@ -255,6 +255,7 @@ void WindowSingleThreaded::resizeEvent(QResizeEvent *)
         createFbo();
         m_context->doneCurrent();
         updateSizes();
+        render();
     }
 }