Parcourir la source

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

omar il y a 7 ans
Parent
commit
4c35e00f49
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      imgui.cpp

+ 1 - 1
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;
 }