diff --git a/nel/src/3d/render_trav.cpp b/nel/src/3d/render_trav.cpp index 1b7e8e84e..a1e1b69be 100644 --- a/nel/src/3d/render_trav.cpp +++ b/nel/src/3d/render_trav.cpp @@ -921,7 +921,7 @@ void CRenderTrav::changeVPLightSetupMaterial(const CMaterial &mat, bool exclude Driver->setUniform4f(IDriver::VertexProgram, program->idxLighted().Diffuse[i], color); } - nlassert(_VPNumLights < MaxVPLight); + nlassert(_VPNumLights <= MaxVPLight); if (i != _VPNumLights) { color= _VPLightDiffuse[i] * matDiff; @@ -1240,7 +1240,7 @@ std::string CRenderTrav::getLightVPFragmentNeLVP(uint numActivePointLights, uin // Code frag written for 4 light max. nlassert(MaxVPLight==4); - nlassert(numActivePointLights<=MaxVPLight-1); + nlassert(numActivePointLights<=MaxVPLight); // Add LightingVPFragmentNormalize fragment? if(normalize)