mirror of https://github.com/ocornut/imgui
Fix uninitialized fields - MouseCursor set by first call to NewFrame()
This commit is contained in:
parent
c0699958ce
commit
a4cf50affe
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue