1
1
forked from 0ad/0ad

Fixes calling SDL functions in CVideoMode after SDL_Quit.

CVideoMode::Shutdown was introduced in 97019c3a5a without any SDL calls
in it. But the one was added in d62e3729d5.

Differential Revision: https://code.wildfiregames.com/D4836
This was SVN commit r27268.
This commit is contained in:
Vladislav Belov 2022-12-04 14:54:24 +00:00
parent 65ab37d49f
commit 55443563e6

View File

@ -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");