Viewport: Made GetWindowViewport() not flag the window as written to.

This commit is contained in:
omar 2018-05-16 22:48:54 +02:00
parent 7f960616e0
commit 4c35e00f49

View File

@ -8138,7 +8138,7 @@ ImDrawList* ImGui::GetWindowDrawList()
ImGuiViewport* ImGui::GetWindowViewport()
{
ImGuiWindow* window = GetCurrentWindow();
ImGuiWindow* window = GetCurrentWindowRead();
IM_ASSERT(window->Viewport != NULL);
return window->Viewport;
}