forked from Kolyah35/minecraft-pe-0.6.1
FIX: glfw crash when closing the game
This commit is contained in:
@@ -205,16 +205,16 @@ int main(void) {
|
||||
|
||||
delete app;
|
||||
|
||||
appContext.platform->finish();
|
||||
|
||||
delete appContext.platform;
|
||||
|
||||
#ifndef STANDALONE_SERVER
|
||||
// Exit.
|
||||
glfwDestroyWindow(platform->window);
|
||||
glfwTerminate();
|
||||
#endif
|
||||
|
||||
appContext.platform->finish();
|
||||
|
||||
delete appContext.platform;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user