diff --git a/Source/Engine/Platform/SDL/SDLWindow.cpp b/Source/Engine/Platform/SDL/SDLWindow.cpp index 1df680de4..3608b8168 100644 --- a/Source/Engine/Platform/SDL/SDLWindow.cpp +++ b/Source/Engine/Platform/SDL/SDLWindow.cpp @@ -231,6 +231,9 @@ SDLWindow::~SDLWindow() if (_window == nullptr) return; + + if (Input::Mouse != nullptr && Input::Mouse->IsRelative(this)) + Input::Mouse->SetRelativeMode(false, this); SDL_StopTextInput(_window); SDL_DestroyWindow(_window);