Moved glfwTerminate window closing to shared code.

This commit is contained in:
Camilla Berglund
2010-09-15 02:28:56 +02:00
parent 0d39fbec58
commit d7670cf906
3 changed files with 4 additions and 6 deletions
+4
View File
@@ -70,6 +70,10 @@ GLFWAPI void glfwTerminate(void)
if (!_glfwInitialized)
return;
// Close all remaining windows
while (_glfwLibrary.windowListHead)
glfwCloseWindow(_glfwLibrary.windowListHead);
if (!_glfwPlatformTerminate())
return;