aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/accessible/qaccessiblequickitem.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@digia.com>2014-10-20 13:46:13 +0200
committerOleg Shparber <trollixx@gmail.com>2014-10-21 03:15:54 +0200
commitd6661ca409ebf1e4a2fa21fa4f084f63f70052e3 (patch)
tree62d0da4b1fd4840a36260e80232e3cf9895a9342 /src/quick/accessible/qaccessiblequickitem.cpp
parentf830c109d09d835551c1325c4904fc9a490b3754 (diff)
Fix failing makeCurrent in basic renderloop when closing windows
The makeCurrent() call can fail if there is no underlying platform window present anymore (due to close()). Just continuing with the cleanup is wrong: There may be another context current (from the application or from some other component of Qt) and there are GL calls issued which would mess up the state in that context. Therefore we ensure there's a context/surface by using a temporary QOffscreenSurface. Task-number: QTBUG-41942 Change-Id: I79f35a1f5bbe7a8a14943e8603764575ed119f93 Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Diffstat (limited to 'src/quick/accessible/qaccessiblequickitem.cpp')
0 files changed, 0 insertions, 0 deletions