From 3a2156492e8214b3f892e8d7cb2a79c4ac158ce6 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Wed, 18 Mar 2015 08:58:24 +0100 Subject: [PATCH] Removing useless light update. --- game/graphics.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/game/graphics.cc b/game/graphics.cc index 25b1cb4..d4d6064 100644 --- a/game/graphics.cc +++ b/game/graphics.cc @@ -48,10 +48,8 @@ void Graphics::init(Level* level) { glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glEnable(GL_TEXTURE_CUBE_MAP_SEAMLESS); glEnable(GL_MULTISAMPLE); - - // update lights on creation - lastLightUpdate = -lightUpdateDelay; + lastLightUpdate = 0; lastWindUpdate = - windUpdateDelay; windTarget = 0.0f;