Browse Source

Fixed GCC build.

Lasse Öörni 14 years ago
parent
commit
998333b4b5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Engine/Graphics/Batch.cpp

+ 1 - 1
Engine/Graphics/Batch.cpp

@@ -258,7 +258,7 @@ void Batch::Prepare(Graphics* graphics, Renderer* renderer, bool setModelTransfo
                 if (type == LIGHT_DIRECTIONAL)
                     invRange = 0.0f;
                 else
-                    invRange = 1.0f / max(vertexLight->GetRange(), M_EPSILON);
+                    invRange = 1.0f / Max(vertexLight->GetRange(), M_EPSILON);
                 if (type == LIGHT_SPOT)
                 {
                     cutoff = cosf(vertexLight->GetFov() * 0.5f * M_DEGTORAD);