From 626dbf605731488b1fd1c62fc7156a88f719c985 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Mon, 18 Aug 2014 12:17:00 +0200 Subject: [PATCH] Added clearing of global struct on terminate. --- src/init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/init.c b/src/init.c index 9d50cf9c..7e5204aa 100644 --- a/src/init.c +++ b/src/init.c @@ -174,6 +174,7 @@ GLFWAPI void glfwTerminate(void) _glfwPlatformTerminate(); + memset(&_glfw, 0, sizeof(_glfw)); _glfwInitialized = GL_FALSE; }