Move wlc destructor to just before the functions are unloaded
This commit is contained in:
parent
35f821f6a1
commit
069f09c43c
2
glfw/wl_init.c
vendored
2
glfw/wl_init.c
vendored
@ -792,7 +792,6 @@ int _glfwPlatformInit(void)
|
|||||||
|
|
||||||
void _glfwPlatformTerminate(void)
|
void _glfwPlatformTerminate(void)
|
||||||
{
|
{
|
||||||
glfw_wlc_destroy();
|
|
||||||
_glfwTerminateEGL();
|
_glfwTerminateEGL();
|
||||||
if (_glfw.wl.egl.handle)
|
if (_glfw.wl.egl.handle)
|
||||||
{
|
{
|
||||||
@ -803,6 +802,7 @@ void _glfwPlatformTerminate(void)
|
|||||||
glfw_xkb_release(&_glfw.wl.xkb);
|
glfw_xkb_release(&_glfw.wl.xkb);
|
||||||
glfw_dbus_terminate(&_glfw.wl.dbus);
|
glfw_dbus_terminate(&_glfw.wl.dbus);
|
||||||
|
|
||||||
|
glfw_wlc_destroy();
|
||||||
if (_glfw.wl.cursor.handle)
|
if (_glfw.wl.cursor.handle)
|
||||||
{
|
{
|
||||||
_glfw_dlclose(_glfw.wl.cursor.handle);
|
_glfw_dlclose(_glfw.wl.cursor.handle);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user