Skip to content
Permalink
Browse files

Fixed spurious SDL error on shutdown if mouse capture isn't supported

  • Loading branch information
slouken committed Oct 15, 2014
1 parent 89127c2 commit 348cf3ee281a90739949aee6df0a5afe838f9456
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/events/SDL_mouse.c
@@ -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);

0 comments on commit 348cf3e

Please sign in to comment.