iOS: Unset EAGL context if it's current when destroying QIOSContext

Change-Id: Ie0b27e6b0dafa2a7283b44d6676871fce15cc42a
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
bb10
Tor Arne Vestbø 2012-11-07 17:30:46 +01:00
parent 6bbe89e2b8
commit caacccaaf0
1 changed files with 3 additions and 0 deletions

View File

@ -70,6 +70,9 @@ QIOSContext::QIOSContext(QOpenGLContext *context)
QIOSContext::~QIOSContext()
{
if ([EAGLContext currentContext] == m_eaglContext)
doneCurrent();
[m_eaglContext release];
}