Make sure setActive(false) is called before the surface is destroyed in EglContext. Fixes #1530.
This commit is contained in:
parent
b9fdaf487f
commit
db80f6a60f
@ -233,11 +233,11 @@ void EglContext::createSurface(EGLNativeWindowType window)
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
void EglContext::destroySurface()
|
void EglContext::destroySurface()
|
||||||
{
|
{
|
||||||
|
// Ensure that this context is no longer active since our surface is going to be destroyed
|
||||||
|
setActive(false);
|
||||||
|
|
||||||
eglCheck(eglDestroySurface(m_display, m_surface));
|
eglCheck(eglDestroySurface(m_display, m_surface));
|
||||||
m_surface = EGL_NO_SURFACE;
|
m_surface = EGL_NO_SURFACE;
|
||||||
|
|
||||||
// Ensure that this context is no longer active since our surface is now destroyed
|
|
||||||
setActive(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user