From 4c35e00f49203bc00ebe97d0a3a9d543af355909 Mon Sep 17 00:00:00 2001 From: omar Date: Wed, 16 May 2018 22:48:54 +0200 Subject: [PATCH] Viewport: Made GetWindowViewport() not flag the window as written to. --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 22c07fbf..7f8d8283 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -8138,7 +8138,7 @@ ImDrawList* ImGui::GetWindowDrawList() ImGuiViewport* ImGui::GetWindowViewport() { - ImGuiWindow* window = GetCurrentWindow(); + ImGuiWindow* window = GetCurrentWindowRead(); IM_ASSERT(window->Viewport != NULL); return window->Viewport; }