Skip to content

Commit

Permalink
Samples: Compositor - fix RT debug view with RTSS
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed May 18, 2024
1 parent 54ca073 commit ca67f2a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Samples/Compositor/include/Compositor.h
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@ void Sample_Compositor::setupControls(void)

mTrayMgr->createSeparator(TL_TOPRIGHT, "DebugRTTSep1"); // this is a hack to give the debug RTT a bit more room

// make sure we query the correct scheme
MaterialManager::getSingleton().setActiveScheme(mViewport->getMaterialScheme());

DecorWidget* debugRTTPanel = mTrayMgr->createDecorWidget(TL_NONE, "DebugRTTPanel", "SdkTrays/Picture");
OverlayContainer* debugRTTContainer = (OverlayContainer*)debugRTTPanel->getOverlayElement();
mDebugTextureTUS = debugRTTContainer->getMaterial()->getBestTechnique()->getPass(0)->getTextureUnitState(0);
Expand Down

0 comments on commit ca67f2a

Please sign in to comment.