mirror of
https://github.com/glfw/glfw.git
synced 2024-11-26 12:02:00 +00:00
Fixed return value of glfwGetCurrentContext.
This commit is contained in:
parent
2a8b2ccef4
commit
9696321334
@ -509,7 +509,7 @@ GLFWAPI GLFWwindow glfwGetCurrentContext(void)
|
|||||||
if (!_glfwInitialized)
|
if (!_glfwInitialized)
|
||||||
{
|
{
|
||||||
_glfwSetError(GLFW_NOT_INITIALIZED, NULL);
|
_glfwSetError(GLFW_NOT_INITIALIZED, NULL);
|
||||||
return GL_FALSE;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
return _glfwLibrary.currentWindow;
|
return _glfwLibrary.currentWindow;
|
||||||
|
Loading…
Reference in New Issue
Block a user