OpenGLDevice: Fix possible missing eglMakeCurrent() after FS
This commit is contained in:
parent
365e129792
commit
816ef45199
|
@ -292,8 +292,11 @@ void OpenGLContextEGL::DestroySurface(SurfaceHandle handle)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
EGLSurface surface = (EGLSurface)handle;
|
EGLSurface surface = (EGLSurface)handle;
|
||||||
if (eglGetCurrentSurface(EGL_DRAW) == surface)
|
if (m_current_surface == surface)
|
||||||
|
{
|
||||||
eglMakeCurrent(m_display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
|
eglMakeCurrent(m_display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
|
||||||
|
m_current_surface = EGL_NO_SURFACE;
|
||||||
|
}
|
||||||
|
|
||||||
DestroyPlatformSurface(surface);
|
DestroyPlatformSurface(surface);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue