Fixed bad assertion in lighting code--off by one error testing for
maximum number of lights.ver1_6_1
parent
088abfb621
commit
8d180b6dbb
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue