Fixed bad assertion in lighting code--off by one error testing for

maximum number of lights.
ver1_6_1
Chris Laurel 2008-12-04 21:48:04 +00:00
parent 088abfb621
commit 8d180b6dbb
1 changed files with 1 additions and 1 deletions

View File

@ -7880,7 +7880,7 @@ void Renderer::renderPlanet(Body& body,
appMag,
#endif
lights);
assert(lights.nLights < MaxLights);
assert(lights.nLights <= MaxLights);
lights.ambientColor = Vec3f(ambientColor.red(),
ambientColor.green(),