Skip to content

Commit

Permalink
Example11: do not use deprecate SharedPtr API
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Nov 9, 2024
1 parent 57f6b3d commit 27fd494
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/Example11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ void PGSampleApp::configureShadows(bool enabled, bool depthShadows)
// 3 textures per directional light (PSSM)
mSceneMgr->setShadowTextureCountPerLightType(Ogre::Light::LT_DIRECTIONAL, 3);

if (mPSSMSetup.isNull())
if (!mPSSMSetup)
{
// shadow camera setup
PSSMShadowCameraSetup* pssmSetup = new PSSMShadowCameraSetup();
Expand All @@ -249,7 +249,7 @@ void PGSampleApp::configureShadows(bool enabled, bool depthShadows)
pssmSetup->setOptimalAdjustFactor(1, 1);
pssmSetup->setOptimalAdjustFactor(2, 0.5);

mPSSMSetup.bind(pssmSetup);
mPSSMSetup.reset(pssmSetup);

}
mSceneMgr->setShadowCameraSetup(mPSSMSetup);
Expand Down

0 comments on commit 27fd494

Please sign in to comment.