1
0
mirror of https://github.com/ocornut/imgui.git synced 2024-11-24 15:50:25 +01:00

ImDrawList: winodw draw lists destructed properly on Shutdown()

This commit is contained in:
ocornut 2015-07-07 18:00:19 -06:00
parent acf58c6223
commit 3e4841765d

View File

@ -1041,6 +1041,7 @@ struct ImDrawList
ImVector<ImVec2> path; // [Internal] current path building ImVector<ImVec2> path; // [Internal] current path building
ImDrawList() { owner_name = NULL; Clear(); } ImDrawList() { owner_name = NULL; Clear(); }
~ImDrawList() { ClearFreeMemory(); }
IMGUI_API void Clear(); IMGUI_API void Clear();
IMGUI_API void ClearFreeMemory(); IMGUI_API void ClearFreeMemory();
IMGUI_API void PushClipRect(const ImVec4& clip_rect); // Scissoring. The values are x1, y1, x2, y2. IMGUI_API void PushClipRect(const ImVec4& clip_rect); // Scissoring. The values are x1, y1, x2, y2.