mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 08:49:05 +02:00
quiet compiler
This commit is contained in:
parent
1e166eef0f
commit
a47ae9212b
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ void DeferredLightingEffect::addPointLight(const glm::vec3& position, float radi
|
||||||
void DeferredLightingEffect::addSpotLight(const glm::vec3& position, float radius, const glm::vec3& color,
|
void DeferredLightingEffect::addSpotLight(const glm::vec3& position, float radius, const glm::vec3& color,
|
||||||
float intensity, const glm::quat& orientation, float exponent, float cutoff) {
|
float intensity, const glm::quat& orientation, float exponent, float cutoff) {
|
||||||
|
|
||||||
int lightID = _pointLights.size() + _spotLights.size() + _globalLights.size();
|
unsigned int lightID = _pointLights.size() + _spotLights.size() + _globalLights.size();
|
||||||
if (lightID >= _allocatedLights.size()) {
|
if (lightID >= _allocatedLights.size()) {
|
||||||
_allocatedLights.push_back(model::LightPointer(new model::Light()));
|
_allocatedLights.push_back(model::LightPointer(new model::Light()));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue