From 60856b46e691d1b4386d0a86051656f762eaa29d Mon Sep 17 00:00:00 2001 From: scrawl Date: Sun, 19 Feb 2012 23:22:29 +0100 Subject: [PATCH] moved the renderer update call from OMW::Engine to RenderingManager --- apps/openmw/engine.cpp | 3 --- apps/openmw/mwrender/renderingmanager.cpp | 2 ++ libs/openengine | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/apps/openmw/engine.cpp b/apps/openmw/engine.cpp index 89a3f00fb4..c8dca2d3aa 100644 --- a/apps/openmw/engine.cpp +++ b/apps/openmw/engine.cpp @@ -162,9 +162,6 @@ bool OMW::Engine::frameRenderingQueued (const Ogre::FrameEvent& evt) // report focus object (for debugging) if (mReportFocus) updateFocusReport (mEnvironment.mFrameDuration); - - // update ogre renderer - mOgre->update(evt.timeSinceLastFrame); } catch (const std::exception& e) { diff --git a/apps/openmw/mwrender/renderingmanager.cpp b/apps/openmw/mwrender/renderingmanager.cpp index 2d31cded9b..382bc2a3c7 100644 --- a/apps/openmw/mwrender/renderingmanager.cpp +++ b/apps/openmw/mwrender/renderingmanager.cpp @@ -125,6 +125,8 @@ void RenderingManager::moveObjectToCell (const MWWorld::Ptr& ptr, const Ogre::Ve void RenderingManager::update (float duration){ mActors.update (duration); + + mRendering.update(duration); } void RenderingManager::skyEnable () diff --git a/libs/openengine b/libs/openengine index b77f5c06cc..eb61ba59e6 160000 --- a/libs/openengine +++ b/libs/openengine @@ -1 +1 @@ -Subproject commit b77f5c06cc3fd818a5efbbb42d6c2a079fa91143 +Subproject commit eb61ba59e64c332931c12251cac40de5836ff9cd