|
|
@ -50,9 +50,11 @@ GLFWAPI int glfwInit(void) |
|
|
|
memset(&_glfwLibrary, 0, sizeof(_glfwLibrary)); |
|
|
|
memset(&_glfwLibrary, 0, sizeof(_glfwLibrary)); |
|
|
|
|
|
|
|
|
|
|
|
if (!_glfwPlatformInit()) |
|
|
|
if (!_glfwPlatformInit()) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
_glfwPlatformTerminate(); |
|
|
|
return GL_FALSE; |
|
|
|
return GL_FALSE; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// From now on, GLFW state is valid
|
|
|
|
|
|
|
|
_glfwInitialized = GL_TRUE; |
|
|
|
_glfwInitialized = GL_TRUE; |
|
|
|
|
|
|
|
|
|
|
|
return GL_TRUE; |
|
|
|
return GL_TRUE; |
|
|
@ -71,7 +73,6 @@ GLFWAPI void glfwTerminate(void) |
|
|
|
if (!_glfwPlatformTerminate()) |
|
|
|
if (!_glfwPlatformTerminate()) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
// GLFW is no longer initialized
|
|
|
|
|
|
|
|
_glfwInitialized = GL_FALSE; |
|
|
|
_glfwInitialized = GL_FALSE; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|