Fix shutdown crash in SDL builds. Fixes #9409

This commit is contained in:
Henrik Rydgård committed 2017-03-11 12:58:21 +01:00
1 parent 9bb81a24c0
commit 3286c62ee5
1 file changed
+1 -1
+1 -1
View File
@@ -914,8 +914,8 @@ int main(int argc, char *argv[]) {
#endif
NativeShutdownGraphics();
graphicsContext->Shutdown();
delete graphicsContext;
NativeShutdown();
delete graphicsContext;
// Faster exit, thanks to the OS. Remove this if you want to debug shutdown
// The speed difference is only really noticable on Linux. On Windows you do notice it though
#ifndef MOBILE_DEVICE