Skip to content

Commit

Permalink
Samples: fix crash on restarting sample
Browse files Browse the repository at this point in the history
by leaked InputListenerChain
  • Loading branch information
paroj committed May 9, 2024
1 parent 949c2a5 commit 6930e57
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Samples/Common/include/SdkSample.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ namespace OgreBites
mControls.reset();
mCameraMan.reset();
mTrayMgr.reset();
mInputListenerChain = TouchAgnosticInputListenerChain(mWindow, {});

// restore settings we may have changed, so as not to affect other samples
Ogre::MaterialManager::getSingleton().setDefaultTextureFiltering(Ogre::TFO_BILINEAR);
Expand Down

0 comments on commit 6930e57

Please sign in to comment.