mirror of
https://github.com/stenzek/duckstation.git
synced 2024-11-22 21:39:40 +00:00
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;
|
||||
|
||||
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);
|
||||
m_current_surface = EGL_NO_SURFACE;
|
||||
}
|
||||
|
||||
DestroyPlatformSurface(surface);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user