mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-10 23:05:37 +00:00
Fixed spurious SDL error on shutdown if mouse capture isn't supported
This commit is contained in:
parent
89127c2d70
commit
348cf3ee28
|
@ -430,7 +430,9 @@ SDL_MouseQuit(void)
|
||||||
SDL_Cursor *cursor, *next;
|
SDL_Cursor *cursor, *next;
|
||||||
SDL_Mouse *mouse = SDL_GetMouse();
|
SDL_Mouse *mouse = SDL_GetMouse();
|
||||||
|
|
||||||
|
if (mouse->CaptureMouse) {
|
||||||
SDL_CaptureMouse(SDL_FALSE);
|
SDL_CaptureMouse(SDL_FALSE);
|
||||||
|
}
|
||||||
SDL_SetRelativeMouseMode(SDL_FALSE);
|
SDL_SetRelativeMouseMode(SDL_FALSE);
|
||||||
SDL_ShowCursor(1);
|
SDL_ShowCursor(1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue