From e371153288c3eb99e568fe19fb725f151d6a58ac Mon Sep 17 00:00:00 2001 From: MihailRis Date: Mon, 5 Jan 2026 19:19:10 +0300 Subject: [PATCH] fix conditional jump or move depends on uninitialised value in GLFWWindow --- src/window/detail/GLFWWindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/window/detail/GLFWWindow.cpp b/src/window/detail/GLFWWindow.cpp index 074693066..a27b27b03 100644 --- a/src/window/detail/GLFWWindow.cpp +++ b/src/window/detail/GLFWWindow.cpp @@ -332,8 +332,8 @@ private: GLFWwindow* window; bool cursorLocked = false; bool cursorDrag = false; - glm::vec2 delta; - glm::vec2 cursor; + glm::vec2 delta {}; + glm::vec2 cursor {}; }; static_assert(!std::is_abstract()); @@ -577,7 +577,7 @@ private: CursorShape cursor = CursorShape::ARROW; int framerate = -1; std::stack scissorStack; - glm::vec4 scissorArea; + glm::vec4 scissorArea {}; double prevSwap = 0.0; int posX = 0; int posY = 0;