Explorar o código

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).
ocornut %!s(int64=2) %!d(string=hai) anos
pai
achega
ac38c8e6fe
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      imgui.cpp

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