diff --git a/src/SDL12_compat.c b/src/SDL12_compat.c index f97944f6f..a90ddd087 100644 --- a/src/SDL12_compat.c +++ b/src/SDL12_compat.c @@ -7294,12 +7294,6 @@ UpdateRelativeMouseMode(void) const SDL_bool enable = (VideoWindowGrabbed && VideoCursorHidden) ? SDL_TRUE : SDL_FALSE; if (MouseInputIsRelative != enable) { MouseInputIsRelative = enable; - if (MouseInputIsRelative) { - /* reset position, we'll have to track it ourselves in SDL_MOUSEMOTION events, since 1.2 - * would give you window coordinates, even in relative mode. */ - SDL20_GetMouseState(&MousePosition.x, &MousePosition.y); - AdjustOpenGLLogicalScalingPoint(&MousePosition.x, &MousePosition.y); - } SDL20_SetRelativeMouseMode(MouseInputIsRelative); } }