From 6930e577491078b64e282d3853df15b750a339d9 Mon Sep 17 00:00:00 2001 From: Pavel Rojtberg Date: Wed, 8 May 2024 00:37:31 +0200 Subject: [PATCH] Samples: fix crash on restarting sample by leaked InputListenerChain --- Samples/Common/include/SdkSample.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Samples/Common/include/SdkSample.h b/Samples/Common/include/SdkSample.h index 54a2b4afab3..6e271176b82 100644 --- a/Samples/Common/include/SdkSample.h +++ b/Samples/Common/include/SdkSample.h @@ -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);