Commit 5cc46f3d30f4e8bba7e53b2da27741e80c70a91b

Ryan C. Gordon 2017-11-06T15:29:24

mouse: remove assert for unimplemented platforms (thanks, tomwardio!). Fixes Bugzilla #3946.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/events/SDL_mouse.c b/src/events/SDL_mouse.c
index 80c367f..8aa28e4 100644
--- a/src/events/SDL_mouse.c
+++ b/src/events/SDL_mouse.c
@@ -646,7 +646,6 @@ SDL_GetGlobalMouseState(int *x, int *y)
     *x = *y = 0;
 
     if (!mouse->GetGlobalMouseState) {
-        SDL_assert(0 && "This should really be implemented for every target.");
         return 0;
     }