Просмотр исходного кода

Fixed return value of glfwGetCurrentContext.

Camilla Berglund 13 лет назад
Родитель
Сommit
9696321334
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/opengl.c

+ 1 - 1
src/opengl.c

@@ -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;