forked from 0ad/0ad
Fix profiler shutdown order
This was SVN commit r10483.
This commit is contained in:
parent
d9f3e329f0
commit
cb27a680bf
@ -503,5 +503,8 @@ int main(int argc, char* argv[])
|
||||
|
||||
RunGameOrAtlas(argc, const_cast<const char**>(argv));
|
||||
|
||||
// Shut down profiler initialised by EarlyInit
|
||||
g_Profiler2.Shutdown();
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
@ -698,8 +698,6 @@ void Shutdown(int UNUSED(flags))
|
||||
wmi_Shutdown();
|
||||
TIMER_END(L"shutdown wmi");
|
||||
#endif
|
||||
|
||||
g_Profiler2.Shutdown();
|
||||
}
|
||||
|
||||
#if OS_UNIX
|
||||
@ -779,7 +777,8 @@ void EarlyInit()
|
||||
|
||||
timer_LatchStartTime();
|
||||
|
||||
// initialise profiler early so it can profile startup
|
||||
// initialise profiler early so it can profile startup,
|
||||
// but only after LatchStartTime
|
||||
g_Profiler2.Initialise();
|
||||
|
||||
FixLocales();
|
||||
|
Loading…
Reference in New Issue
Block a user