Fix for OverlayDrawList being ready to append commands (not exposed publicly yet anyway)

This commit is contained in:
ocornut 2015-07-13 15:52:57 -06:00
parent 7eca4e2a7f
commit 5b053dd350

View File

@ -2134,6 +2134,7 @@ void ImGui::NewFrame()
g.FrameCount += 1; g.FrameCount += 1;
g.Tooltip[0] = '\0'; g.Tooltip[0] = '\0';
g.OverlayDrawList.Clear(); g.OverlayDrawList.Clear();
g.OverlayDrawList.AddDrawCmd();
// Update inputs state // Update inputs state
if (g.IO.MousePos.x < 0 && g.IO.MousePos.y < 0) if (g.IO.MousePos.x < 0 && g.IO.MousePos.y < 0)