From 487db019c20280d1b970bbdacf4754a0b47ffe0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20Ker=C3=A4nen?= Date: Sun, 30 Oct 2016 10:39:37 +0200 Subject: [PATCH] Performance|Renderer: Minor optimization --- doomsday/apps/client/src/render/rend_main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/doomsday/apps/client/src/render/rend_main.cpp b/doomsday/apps/client/src/render/rend_main.cpp index a372de9826..d9bbfcbcbd 100644 --- a/doomsday/apps/client/src/render/rend_main.cpp +++ b/doomsday/apps/client/src/render/rend_main.cpp @@ -789,10 +789,9 @@ static void lightVertex(Vector4f &color, Vector3f const &vtx, dfloat lightLevel, Rend_ApplyLightAdaptation(lightLevel); - for(dint i = 0; i < 3; ++i) - { - color[i] = lightLevel * ambientColor[i]; - } + color.x = lightLevel * ambientColor.x; + color.y = lightLevel * ambientColor.y; + color.z = lightLevel * ambientColor.z; } /**