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)
commitfacf3b15b304a2876b3810f4dade4f233924e35e
tree9a8818cb88dea902ffcf0b2c5aa1a1ebc32d3dee
parentdee67b41b031791c7b6313e935e622ef8d594686
Avoid showing garbage when resizing the rendercontrol example

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