mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
clean up our cursors during destruction
This commit is contained in:
parent
eeacb04fe2
commit
651a654985
11
extern/sdl4ogre/sdlinputwrapper.cpp
vendored
11
extern/sdl4ogre/sdlinputwrapper.cpp
vendored
@ -37,6 +37,17 @@ namespace SFO
|
|||||||
if(mSDLWindow != NULL)
|
if(mSDLWindow != NULL)
|
||||||
SDL_DestroyWindow(mSDLWindow);
|
SDL_DestroyWindow(mSDLWindow);
|
||||||
mSDLWindow = NULL;
|
mSDLWindow = NULL;
|
||||||
|
|
||||||
|
CursorMap::const_iterator curs_iter = mCursorMap.begin();
|
||||||
|
|
||||||
|
while(curs_iter != mCursorMap.end())
|
||||||
|
{
|
||||||
|
SDL_FreeCursor(curs_iter->second);
|
||||||
|
++curs_iter;
|
||||||
|
}
|
||||||
|
|
||||||
|
mCursorMap.clear();
|
||||||
|
|
||||||
SDL_StopTextInput();
|
SDL_StopTextInput();
|
||||||
SDL_Quit();
|
SDL_Quit();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user