From a4cf50affeb480035228762d687012f0b74fce0d Mon Sep 17 00:00:00 2001 From: ocornut Date: Wed, 1 Apr 2015 15:08:42 +0100 Subject: [PATCH] Fix uninitialized fields - MouseCursor set by first call to NewFrame() --- imgui.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/imgui.cpp b/imgui.cpp index d0bba01d6..5cf379c62 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -1012,6 +1012,7 @@ struct ImGuiDrawContext LastItemID = 0; LastItemRect = ImRect(0.0f,0.0f,0.0f,0.0f); LastItemHoveredAndUsable = LastItemHoveredRect = false; + ColorEditMode = ImGuiColorEditMode_RGB; StateStorage = NULL; ColumnsStartX = 0.0f; @@ -1192,6 +1193,8 @@ struct ImGuiState memset(Tooltip, 0, sizeof(Tooltip)); PrivateClipboard = NULL; + MouseCursor = ImGuiMouseCursor_Arrow; + LogEnabled = false; LogFile = NULL; LogClipboard = NULL;