Commit c234a194 authored by Camilla Berglund's avatar Camilla Berglund
Browse files

Fix invalid EGL display being terminated

parent 20574fa8
......@@ -269,9 +269,14 @@ GLFWbool _glfwInitEGL(void)
//
void _glfwTerminateEGL(void)
{
if (_glfw.egl.handle)
if (_glfw.egl.display)
{
eglTerminate(_glfw.egl.display);
_glfw.egl.display = EGL_NO_DISPLAY;
}
if (_glfw.egl.handle)
{
_glfw_dlclose(_glfw.egl.handle);
_glfw.egl.handle = NULL;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment