iOS: Unset EAGL context if it's current when destroying QIOSContext
Change-Id: Ie0b27e6b0dafa2a7283b44d6676871fce15cc42a Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>bb10
parent
6bbe89e2b8
commit
caacccaaf0
|
|
@ -70,6 +70,9 @@ QIOSContext::QIOSContext(QOpenGLContext *context)
|
|||
|
||||
QIOSContext::~QIOSContext()
|
||||
{
|
||||
if ([EAGLContext currentContext] == m_eaglContext)
|
||||
doneCurrent();
|
||||
|
||||
[m_eaglContext release];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue