1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-12-13 19:13:06 +00:00

Don't update ripples when they are not used

This commit is contained in:
scrawl 2014-09-02 03:41:57 +02:00
parent 9809748eba
commit 0eb949c8a7

View file

@ -384,11 +384,12 @@ void Water::update(float dt, Ogre::Vector3 player)
void Water::frameStarted(float dt) void Water::frameStarted(float dt)
{ {
mSimulation->update(dt, mPlayer);
if (mReflection) if (mReflection)
{
mSimulation->update(dt, mPlayer);
mReflection->update(); mReflection->update();
} }
}
void Water::applyRTT() void Water::applyRTT()
{ {