mirror of
https://github.com/glfw/glfw.git
synced 2024-11-26 06:14:35 +00:00
Fixed cleanup on some Mir errors.
Release was called on invalid handles.
This commit is contained in:
parent
ead3937394
commit
40f7d4fce0
@ -46,7 +46,6 @@ int _glfwPlatformInit(void)
|
|||||||
"Mir: Unable to connect to server: %s",
|
"Mir: Unable to connect to server: %s",
|
||||||
mir_connection_get_error_message(_glfw.mir.connection));
|
mir_connection_get_error_message(_glfw.mir.connection));
|
||||||
|
|
||||||
mir_connection_release(_glfw.mir.connection);
|
|
||||||
return GL_FALSE;
|
return GL_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -410,7 +410,6 @@ static int createSurface(_GLFWwindow* window)
|
|||||||
"Mir: Unable to create surface: %s",
|
"Mir: Unable to create surface: %s",
|
||||||
mir_surface_get_error_message(window->mir.surface));
|
mir_surface_get_error_message(window->mir.surface));
|
||||||
|
|
||||||
mir_surface_release_sync(window->mir.surface);
|
|
||||||
return GL_FALSE;
|
return GL_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user