From b1ef06d9009a7d66da738189c4df6ccb1bb38fcf Mon Sep 17 00:00:00 2001 From: kaetemi Date: Sun, 22 Nov 2020 03:55:50 +0800 Subject: [PATCH] These asserts don't make sense --- nel/src/3d/render_trav.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)