mirror of
https://github.com/glfw/glfw.git
synced 2025-11-18 03:53:27 +00:00
Wayland: egl _glfwPlatformFreeModule calls moved to end
This commit is contained in:
parent
c1ff180f4e
commit
a281536b6b
@ -555,7 +555,8 @@ void _glfwTerminateEGL(void)
|
|||||||
_glfw.egl.display = EGL_NO_DISPLAY;
|
_glfw.egl.display = EGL_NO_DISPLAY;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_glfw.egl.handle)
|
// Free modules only after all wayland termination functions are called
|
||||||
|
if (_glfw.egl.handle && _glfw.platform.platformID != GLFW_PLATFORM_WAYLAND)
|
||||||
{
|
{
|
||||||
_glfwPlatformFreeModule(_glfw.egl.handle);
|
_glfwPlatformFreeModule(_glfw.egl.handle);
|
||||||
_glfw.egl.handle = NULL;
|
_glfw.egl.handle = NULL;
|
||||||
|
|||||||
@ -982,6 +982,12 @@ void _glfwTerminateWayland(void)
|
|||||||
close(_glfw.wl.cursorTimerfd);
|
close(_glfw.wl.cursorTimerfd);
|
||||||
|
|
||||||
// Free modules only after all wayland termination functions are called
|
// Free modules only after all wayland termination functions are called
|
||||||
|
if (_glfw.egl.handle)
|
||||||
|
{
|
||||||
|
_glfwPlatformFreeModule(_glfw.egl.handle);
|
||||||
|
_glfw.egl.handle = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (_glfw.wl.libdecor.handle)
|
if (_glfw.wl.libdecor.handle)
|
||||||
{
|
{
|
||||||
_glfwPlatformFreeModule(_glfw.wl.libdecor.handle);
|
_glfwPlatformFreeModule(_glfw.wl.libdecor.handle);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user