src/events/SDL_mouse.c
changeset 9161 6e34073ef024
parent 8983 21f5923cfd15
child 9257 6f41196c2d6b
--- a/src/events/SDL_mouse.c	Wed Oct 15 09:10:50 2014 -0700
+++ b/src/events/SDL_mouse.c	Wed Oct 15 09:11:15 2014 -0700
@@ -430,7 +430,9 @@
     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);