Skip to content

Commit

Permalink
Revert "Fixed DearIMGUI debug assert - missing EndFrame()"
Browse files Browse the repository at this point in the history
This reverts commit 627d85b.
  • Loading branch information
ohlidalp authored and Petr Ohlídal committed Feb 21, 2022
1 parent f26e5a7 commit 918bdf8
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions source/main/gui/imgui/OgreImGui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,18 +137,11 @@ void OgreImGui::renderQueueStarted(Ogre::uint8 queueGroupId,
Ogre::Viewport* vp = Ogre::Root::getSingletonPtr()->getRenderSystem()->_getViewport();
if(vp != NULL)
{
if (vp->getOverlaysEnabled())
Ogre::SceneManager* sceneMgr = vp->getCamera()->getSceneManager();
if (vp->getOverlaysEnabled() && sceneMgr->_getCurrentRenderStage() != Ogre::SceneManager::IRS_RENDER_TO_TEXTURE)
{
Ogre::SceneManager* sceneMgr = vp->getCamera()->getSceneManager();
if (sceneMgr->_getCurrentRenderStage() != Ogre::SceneManager::IRS_RENDER_TO_TEXTURE)
{
//ORIG//Ogre::OverlayManager::getSingleton()._queueOverlaysForRendering(vp->getCamera(), sceneMgr->getRenderQueue(), vp);
m_imgui_overlay->_findVisibleObjects(vp->getCamera(), sceneMgr->getRenderQueue(), vp);
}
}
else
{
ImGui::EndFrame(); // Rendering won't happen - end frame manually.
//ORIG//Ogre::OverlayManager::getSingleton()._queueOverlaysForRendering(vp->getCamera(), sceneMgr->getRenderQueue(), vp);
m_imgui_overlay->_findVisibleObjects(vp->getCamera(), sceneMgr->getRenderQueue(), vp);
}
}
}
Expand Down

0 comments on commit 918bdf8

Please # to comment.