Skip to content

Commit 27fd494

Browse files
committed
Example11: do not use deprecate SharedPtr API
1 parent 57f6b3d commit 27fd494

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/Example11.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ void PGSampleApp::configureShadows(bool enabled, bool depthShadows)
239239
// 3 textures per directional light (PSSM)
240240
mSceneMgr->setShadowTextureCountPerLightType(Ogre::Light::LT_DIRECTIONAL, 3);
241241

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

252-
mPSSMSetup.bind(pssmSetup);
252+
mPSSMSetup.reset(pssmSetup);
253253

254254
}
255255
mSceneMgr->setShadowCameraSetup(mPSSMSetup);

0 commit comments

Comments
 (0)