@@ -133,10 +133,12 @@ consoleDemoInit(); #endif #ifdef OF_NINTENDO_3DS gfxInitDefault(); + atexit(gfxExit); + consoleInit(GFX_TOP, NULL); #endif #if defined(OF_WII) || defined(OF_PSP) || defined(OF_NINTENDO_DS) || \ defined(OF_NINTENDO_3DS)