Support shutting down the render thread without an OpenGL context.
authorGunnar Sletta <gunnar.sletta@jollamobile.com>
Fri, 11 Apr 2014 14:21:54 +0000 (16:21 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 23 Apr 2014 07:10:18 +0000 (09:10 +0200)
commit4e4228e0b1c01edada84d82746e3360aeffeb037
treef39531393885e6940c6e4940f202c1a40a104f13
parent964dcdfb7bc106696b4be12b7f71ba52f8448973
Support shutting down the render thread without an OpenGL context.

[ChangeLog][QtQuick][SceneGraph] There might not be an OpenGL context
bound when QQuickWindow::sceneGraphInvalidated() is emitted if an
error occurs while cleaning up the scene graph (such as
EGL_CONTEXT_LOST). This is according to the documentation, but has
never occurred in practice before.

Change-Id: I13dbfbb4b6d0d27fa42fcb8b54df16ea02284807
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
src/quick/scenegraph/coreapi/qsgbatchrenderer.cpp
src/quick/scenegraph/qsgthreadedrenderloop.cpp
src/quick/scenegraph/util/qsgatlastexture.cpp