Fix function return value when uninitialized

(cherry picked from commit d7aeb1eae8)
This commit is contained in:
Camilla Löwy 2024-01-18 21:44:31 +01:00
parent 438cd224d7
commit ae44e10b33

View File

@ -694,7 +694,7 @@ GLFWAPI float glfwGetWindowOpacity(GLFWwindow* handle)
_GLFWwindow* window = (_GLFWwindow*) handle;
assert(window != NULL);
_GLFW_REQUIRE_INIT_OR_RETURN(1.f);
_GLFW_REQUIRE_INIT_OR_RETURN(0.f);
return _glfwPlatformGetWindowOpacity(window);
}