mirror of
https://github.com/glfw/glfw.git
synced 2026-09-20 08:23:13 +00:00
wayland: Destroy window context before clearing the egl surface
This commit is contained in:
+2
-2
@@ -127,11 +127,11 @@ int _glfwPlatformCreateWindow(_GLFWwindow* window,
|
||||
|
||||
void _glfwPlatformDestroyWindow(_GLFWwindow* window)
|
||||
{
|
||||
_glfwDestroyContext(window);
|
||||
|
||||
if (window->wl.native)
|
||||
wl_egl_window_destroy(window->wl.native);
|
||||
|
||||
_glfwDestroyContext(window);
|
||||
|
||||
if (window->wl.shell_surface)
|
||||
wl_shell_surface_destroy(window->wl.shell_surface);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user