Skip to content

Commit 123646d

Browse files
committed
InputManager: remove SDL_DestroyWindow/SDL_Quit calls
seem to cause crash on exit for some, these shouldn't really be necessary anyway since process exit will cleanup everything
1 parent 06443bb commit 123646d

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/input_manager.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -445,14 +445,6 @@ class InputManager
445445
{
446446
for (auto controller : controllers)
447447
SDL_CloseGamepad(controller);
448-
449-
if (window)
450-
{
451-
SDL_DestroyWindow(window);
452-
window = nullptr;
453-
}
454-
455-
SDL_Quit();
456448
}
457449

458450
SDL_Gamepad* getPrimaryGamepad()

0 commit comments

Comments
 (0)