Skip to content

Commit

Permalink
OGRE13 imgui: fixed interference with renderdash
Browse files Browse the repository at this point in the history
  • Loading branch information
ohlidalp committed Mar 8, 2023
1 parent f63906a commit a4cfc12
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions source/main/gfx/Renderdash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ void RoR::Renderdash::preRenderTargetUpdate(const Ogre::RenderTargetEvent& evt)
App::GetGfxScene()->GetSceneManager()->setFindVisibleObjects(false);

// Disable DearIMGUI overlay
// FIXME: how to prevent OGRE builtin IMGUI from rendering to renderdash?
// App::GetGfxScene()->GetSceneManager()->removeRenderQueueListener(App::GetGuiManager()->GetImGui());
App::GetGuiManager()->GetImGui()->setVisible(false);

// Disable other overlays
App::GetOverlayWrapper()->HideRacingOverlay();
Expand All @@ -113,8 +112,7 @@ void RoR::Renderdash::postRenderTargetUpdate(const Ogre::RenderTargetEvent& evt)
App::GetGfxScene()->GetSceneManager()->setFindVisibleObjects(true);

// Enable DearIMGUI overlay
// FIXME: how to prevent OGRE builtin IMGUI from rendering to renderdash?
// App::GetGfxScene()->GetSceneManager()->addRenderQueueListener(&App::GetGuiManager()->GetImGui());
App::GetGuiManager()->GetImGui()->setVisible(true);

// Overlays 'racing' and 'direction arrow' are re-enabled automatically if needed

Expand Down

0 comments on commit a4cfc12

Please sign in to comment.