From ac38c8e6fe8ae32007a0840279e7db0c8db85d37 Mon Sep 17 00:00:00 2001 From: ocornut Date: Fri, 21 Apr 2023 18:01:03 +0200 Subject: [PATCH] IO: removed ImGuiBackendFlags_HasMouseHoveredViewport assert in AddMouseViewportEvent(). In theory shouldn't accept them, but a backend overriding another would be prevented from doing so because of this (test engine). --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 0ce0386e..69894bfb 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -1573,7 +1573,7 @@ void ImGuiIO::AddMouseViewportEvent(ImGuiID viewport_id) { IM_ASSERT(Ctx != NULL); ImGuiContext& g = *Ctx; - IM_ASSERT(g.IO.BackendFlags & ImGuiBackendFlags_HasMouseHoveredViewport); + //IM_ASSERT(g.IO.BackendFlags & ImGuiBackendFlags_HasMouseHoveredViewport); if (!AppAcceptingEvents) return;