fix conditional jump or move depends on uninitialised value in GLFWWindow

This commit is contained in:
MihailRis 2026-01-05 19:19:10 +03:00
parent f6cb2f4065
commit e371153288

View file

@ -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<GLFWInput>());
@ -577,7 +577,7 @@ private:
CursorShape cursor = CursorShape::ARROW;
int framerate = -1;
std::stack<glm::vec4> scissorStack;
glm::vec4 scissorArea;
glm::vec4 scissorArea {};
double prevSwap = 0.0;
int posX = 0;
int posY = 0;