mirror of
https://github.com/encounter/SDL.git
synced 2025-12-10 14:07:50 +00:00
Fixed spurious SDL error on shutdown if mouse capture isn't supported
This commit is contained in:
@@ -430,7 +430,9 @@ SDL_MouseQuit(void)
|
||||
SDL_Cursor *cursor, *next;
|
||||
SDL_Mouse *mouse = SDL_GetMouse();
|
||||
|
||||
if (mouse->CaptureMouse) {
|
||||
SDL_CaptureMouse(SDL_FALSE);
|
||||
}
|
||||
SDL_SetRelativeMouseMode(SDL_FALSE);
|
||||
SDL_ShowCursor(1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user