Fixes calling SDL functions in CVideoMode after SDL_Quit.
CVideoMode::Shutdown was introduced in97019c3a5a
without any SDL calls in it. But the one was added ind62e3729d5
. Differential Revision: https://code.wildfiregames.com/D4836 This was SVN commit r27268.
This commit is contained in:
parent
65ab37d49f
commit
55443563e6
@ -363,13 +363,13 @@ void Shutdown(int flags)
|
||||
|
||||
g_Profiler2.ShutdownGPU();
|
||||
|
||||
if (hasRenderer)
|
||||
g_VideoMode.Shutdown();
|
||||
|
||||
TIMER_BEGIN(L"shutdown SDL");
|
||||
ShutdownSDL();
|
||||
TIMER_END(L"shutdown SDL");
|
||||
|
||||
if (hasRenderer)
|
||||
g_VideoMode.Shutdown();
|
||||
|
||||
TIMER_BEGIN(L"shutdown UserReporter");
|
||||
g_UserReporter.Deinitialize();
|
||||
TIMER_END(L"shutdown UserReporter");
|
||||
|
Loading…
Reference in New Issue
Block a user