Skip to content

Commit

Permalink
InputManager: remove SDL_DestroyWindow/SDL_Quit calls
Browse files Browse the repository at this point in the history
seem to cause crash on exit for some, these shouldn't really be necessary anyway since process exit will cleanup everything
  • Loading branch information
emoose committed Jan 16, 2025
1 parent 06443bb commit 123646d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/input_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -445,14 +445,6 @@ class InputManager
{
for (auto controller : controllers)
SDL_CloseGamepad(controller);

if (window)
{
SDL_DestroyWindow(window);
window = nullptr;
}

SDL_Quit();
}

SDL_Gamepad* getPrimaryGamepad()
Expand Down

0 comments on commit 123646d

Please sign in to comment.