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).
This commit is contained in:
ocornut 2023-04-21 18:01:03 +02:00
parent c11128891e
commit ac38c8e6fe

View File

@ -1573,7 +1573,7 @@ void ImGuiIO::AddMouseViewportEvent(ImGuiID viewport_id)
{ {
IM_ASSERT(Ctx != NULL); IM_ASSERT(Ctx != NULL);
ImGuiContext& g = *Ctx; ImGuiContext& g = *Ctx;
IM_ASSERT(g.IO.BackendFlags & ImGuiBackendFlags_HasMouseHoveredViewport); //IM_ASSERT(g.IO.BackendFlags & ImGuiBackendFlags_HasMouseHoveredViewport);
if (!AppAcceptingEvents) if (!AppAcceptingEvents)
return; return;