Introduced QOpenGLContext::aboutToBeDestroyed() signal.
authorSamuel Rødal <samuel.rodal@nokia.com>
Wed, 4 Jan 2012 13:17:45 +0000 (14:17 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 5 Jan 2012 01:17:04 +0000 (02:17 +0100)
commit07edbd23ed774c4f0331bb92d35add77fe91769c
tree68ae5318d26799949b90d13ab01ceb400dc27fa9
parent8ed53babb9713103bdfd70659b147c89c711c6da
Introduced QOpenGLContext::aboutToBeDestroyed() signal.

This signal can be used to clean up OpenGL resources in a safe way
before the context is destroyed.

Task-number: QTBUG-20083
Change-Id: I45a4be01b06af4ee7196fa502116f099d50afeab
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
src/gui/kernel/qopenglcontext.cpp
src/gui/kernel/qopenglcontext.h
tests/auto/gui/qopengl/tst_qopengl.cpp