diff --git a/src/ogre/ogre_engine.cpp b/src/ogre/ogre_engine.cpp index 5395a96762d..2b4abacf871 100644 --- a/src/ogre/ogre_engine.cpp +++ b/src/ogre/ogre_engine.cpp @@ -260,16 +260,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(); }