mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
fix conditional jump or move depends on uninitialised value in GLFWWindow
This commit is contained in:
parent
f6cb2f4065
commit
e371153288
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue