Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Performance|Renderer: Minor optimization
  • Loading branch information
skyjake committed Oct 30, 2016
1 parent cbd106a commit 487db01
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions doomsday/apps/client/src/render/rend_main.cpp
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 487db01

Please sign in to comment.