Moving the block of code above to sdlmain.cpp seems to resolve the issue in the SVN...
Moving the block of code above to sdlmain.cpp seems to resolve the issue. But only...
Crash on exit - r4006, VS2015