From 0eb949c8a732b775bfcbde4659f318a0035b9f24 Mon Sep 17 00:00:00 2001 From: scrawl Date: Tue, 2 Sep 2014 03:41:57 +0200 Subject: [PATCH] Don't update ripples when they are not used --- apps/openmw/mwrender/water.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwrender/water.cpp b/apps/openmw/mwrender/water.cpp index 2cbc4462c3..752da30df8 100644 --- a/apps/openmw/mwrender/water.cpp +++ b/apps/openmw/mwrender/water.cpp @@ -384,10 +384,11 @@ void Water::update(float dt, Ogre::Vector3 player) void Water::frameStarted(float dt) { - mSimulation->update(dt, mPlayer); - if (mReflection) + { + mSimulation->update(dt, mPlayer); mReflection->update(); + } } void Water::applyRTT()