mirror of
https://github.com/glfw/glfw.git
synced 2026-09-22 16:52:57 +00:00
Fix invalid EGL display being terminated
This commit is contained in:
+6
-1
@@ -269,9 +269,14 @@ GLFWbool _glfwInitEGL(void)
|
|||||||
//
|
//
|
||||||
void _glfwTerminateEGL(void)
|
void _glfwTerminateEGL(void)
|
||||||
{
|
{
|
||||||
if (_glfw.egl.handle)
|
if (_glfw.egl.display)
|
||||||
{
|
{
|
||||||
eglTerminate(_glfw.egl.display);
|
eglTerminate(_glfw.egl.display);
|
||||||
|
_glfw.egl.display = EGL_NO_DISPLAY;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (_glfw.egl.handle)
|
||||||
|
{
|
||||||
_glfw_dlclose(_glfw.egl.handle);
|
_glfw_dlclose(_glfw.egl.handle);
|
||||||
_glfw.egl.handle = NULL;
|
_glfw.egl.handle = NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user