Properly clean up SDL controllers and cursors on application exit
This commit is contained in:
parent
47ae258c2e
commit
99846487b9
@ -310,6 +310,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
~SdlPlatform() {
|
~SdlPlatform() {
|
||||||
|
|
||||||
SDL_CloseAudioDevice(m_sdlAudioDevice);
|
SDL_CloseAudioDevice(m_sdlAudioDevice);
|
||||||
|
|
||||||
m_renderer.reset();
|
m_renderer.reset();
|
||||||
@ -397,6 +398,11 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
SDL_CloseAudioDevice(m_sdlAudioDevice);
|
SDL_CloseAudioDevice(m_sdlAudioDevice);
|
||||||
|
m_SdlControllers.clear();
|
||||||
|
|
||||||
|
SDL_SetCursor(NULL);
|
||||||
|
m_cursorCache.clear();
|
||||||
|
|
||||||
m_application.reset();
|
m_application.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user