From ae44e10b33b1acf6377fa881829106d03d041f9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Thu, 18 Jan 2024 21:44:31 +0100 Subject: [PATCH] Fix function return value when uninitialized (cherry picked from commit d7aeb1eae85f9ea629aff719d4eadf31d51b6e26) --- src/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window.c b/src/window.c index 5d80e436..db37a72f 100644 --- a/src/window.c +++ b/src/window.c @@ -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); }