diff --git a/src/ogre/ogre_engine.cpp b/src/ogre/ogre_engine.cpp index b1916b13ca..d76ec68e85 100644 --- a/src/ogre/ogre_engine.cpp +++ b/src/ogre/ogre_engine.cpp @@ -272,16 +272,12 @@ OgreEngine::shutdown() { void OgreEngine::update() { - // Lock shared state - InputState::instance().lockWorkingCopy(); - RenderState::instance().lockStable(); + StateLock inputLock; + StateLock renderLock; // Handle events Ogre::WindowEventUtilities::messagePump(); // Update systems Engine::update(); - // Release shared state - RenderState::instance().releaseStable(); - InputState::instance().releaseWorkingCopy(); }