Fixed return value of glfwGetCurrentContext.

master
Camilla Berglund ago%!(EXTRA string=13 years)
parent 2a8b2ccef4
commit 9696321334
  1. 2
      src/opengl.c

@ -509,7 +509,7 @@ GLFWAPI GLFWwindow glfwGetCurrentContext(void)
if (!_glfwInitialized)
{
_glfwSetError(GLFW_NOT_INITIALIZED, NULL);
return GL_FALSE;
return NULL;
}
return _glfwLibrary.currentWindow;

Loading…
Cancel
Save