Properly clean up SDL controllers and cursors on application exit

This commit is contained in:
Kae 2023-06-28 23:34:59 +10:00
parent 47ae258c2e
commit 99846487b9

View File

@ -310,6 +310,7 @@ public:
}
~SdlPlatform() {
SDL_CloseAudioDevice(m_sdlAudioDevice);
m_renderer.reset();
@ -397,6 +398,11 @@ public:
}
SDL_CloseAudioDevice(m_sdlAudioDevice);
m_SdlControllers.clear();
SDL_SetCursor(NULL);
m_cursorCache.clear();
m_application.reset();
}