mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 03:06:29 +00:00
Fixes calling SDL functions in CVideoMode after SDL_Quit.
CVideoMode::Shutdown was introduced in97019c3a5awithout 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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user