Unset the current gl window when deleted
authorGiulio Camuffo <giuliocamuffo@gmail.com>
Sun, 16 Mar 2014 09:32:30 +0000 (11:32 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 17 Mar 2014 07:39:07 +0000 (08:39 +0100)
commit1bec5e806c909d723994dab46271dfe6f60db6cd
tree85bbd526c851c26699fab4d69b33844b91b7da6c
parent4ef1032a4e5b0e612fb2d440fb3ef82fd5af3c5a
Unset the current gl window when deleted

This does in the QSGGuiThreadRenderLoop what 403045a did for the
QSGThreadedRenderLoop. Fix a memory corruption in Mesa's dri2 EGL
when setting a window current after deleting the previous current
one.

Change-Id: I8df0bacdf12f71e969a9ea39842a402c9a2a303f
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
src/quick/scenegraph/qsgrenderloop.cpp