Fixed spurious SDL error on shutdown if mouse capture isn't supported
This commit is contained in:
parent
9bf16b9b1a
commit
d207ba1ee6
1 changed files with 3 additions and 1 deletions
|
@ -430,7 +430,9 @@ SDL_MouseQuit(void)
|
|||
SDL_Cursor *cursor, *next;
|
||||
SDL_Mouse *mouse = SDL_GetMouse();
|
||||
|
||||
SDL_CaptureMouse(SDL_FALSE);
|
||||
if (mouse->CaptureMouse) {
|
||||
SDL_CaptureMouse(SDL_FALSE);
|
||||
}
|
||||
SDL_SetRelativeMouseMode(SDL_FALSE);
|
||||
SDL_ShowCursor(1);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue