fix(engine): submit ImGui draw data after the Avalonia blit

The aelrynth merge took upstream's EngineFrameController, which submits the ImGui
frame inside OnEndScene, before EndSceneHook blits the Avalonia quad, so panels hid
the ILT Hub and other overlay windows. Restore 6b94752's order: OnEndScene keeps the
built frame and EndSceneHook calls RenderDeferredImGui after OverlayTextureRenderer.
The Win32Backend mouse priority from 6b94752 survived; only its doc comment moved.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
BlankenshipG 2026-10-05 09:49:31 -04:00
commit 5fac4560f8
4 changed files with 91 additions and 11 deletions

View file

@ -449,6 +449,11 @@ internal static class EndSceneHook
if (_uiFrameCount < 30)
RynthLog.D3D9($"EndSceneHook: OverlayTextureRenderer.Render error: {ovEx.GetType().Name}: {ovEx.Message}");
}
// ImGui draw data (in-client panels, plugin overlay windows such as the ILT Hub)
// is submitted LAST so it sits on top of the Avalonia layer. Built in OnEndScene;
// guarded internally, so an ImGui draw failure can't skip the original EndScene.
EngineFrameController.RenderDeferredImGui();
}
catch (Exception ex)
{