diff --git a/ogre2/src/Ogre2GpuRays.cc b/ogre2/src/Ogre2GpuRays.cc index b9e64ddf3..91e6c2573 100644 --- a/ogre2/src/Ogre2GpuRays.cc +++ b/ogre2/src/Ogre2GpuRays.cc @@ -295,7 +295,7 @@ void Ogre2LaserRetroMaterialSwitcher::passPreExecute( const Ogre::HlmsBlendblock *noBlend = hlmsManager->getBlendblock(Ogre::HlmsBlendblock()); - static const std::string laserRetroKey = "laser_retro"; + const std::string laserRetroKey = "laser_retro"; auto itor = this->scene->OgreSceneManager()->getMovableObjectIterator( Ogre::ItemFactory::FACTORY_TYPE_NAME); diff --git a/ogre2/src/Ogre2ThermalCamera.cc b/ogre2/src/Ogre2ThermalCamera.cc index df4be756c..ac21717cf 100644 --- a/ogre2/src/Ogre2ThermalCamera.cc +++ b/ogre2/src/Ogre2ThermalCamera.cc @@ -250,7 +250,7 @@ void Ogre2ThermalCameraMaterialSwitcher::cameraPreRenderScene( const Ogre::HlmsBlendblock *noBlend = hlmsManager->getBlendblock(Ogre::HlmsBlendblock()); - static const std::string tempKey = "temperature"; + const std::string tempKey = "temperature"; auto itor = this->scene->OgreSceneManager()->getMovableObjectIterator( Ogre::ItemFactory::FACTORY_TYPE_NAME);