Skip to content

Commit

Permalink
Main: SceneManager - report derived material in renderdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed May 28, 2023
1 parent ea6f1dc commit 65f6cde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OgreMain/src/OgreSceneManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1532,9 +1532,9 @@ void SceneManager::SceneMgrQueuedRenderableVisitor::visit(const Pass* p, Rendera
if (!targetSceneMgr->validatePassForRendering(p))
return;

OgreProfileBeginGPUEvent(p->getParent()->getParent()->getName());
// Set pass, store the actual one used
mUsedPass = targetSceneMgr->_setPass(p);
OgreProfileBeginGPUEvent(mUsedPass->getParent()->getParent()->getName());

SubMesh* lastsm = 0;
RenderableList instances;
Expand Down Expand Up @@ -1584,7 +1584,7 @@ void SceneManager::SceneMgrQueuedRenderableVisitor::visit(const Pass* p, Rendera
if (!instances.empty())
targetSceneMgr->renderInstancedObject(instances, mUsedPass, scissoring, autoLights, manualLightList);

OgreProfileEndGPUEvent(p->getParent()->getParent()->getName());
OgreProfileEndGPUEvent(mUsedPass->getParent()->getParent()->getName());
}
//-----------------------------------------------------------------------
void SceneManager::SceneMgrQueuedRenderableVisitor::visit(RenderablePass* rp)
Expand Down

0 comments on commit 65f6cde

Please sign in to comment.