Ensure light limit
This commit is contained in:
parent
656603f439
commit
777628d7e1
@ -221,6 +221,11 @@ int start() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
while(shaderLights.size() > KEK_LIGHT_LIMIT) {
|
||||||
|
// TODO: remove furthest lights instead
|
||||||
|
shaderLights.pop_back();
|
||||||
|
}
|
||||||
|
|
||||||
unsigned int i = 0;
|
unsigned int i = 0;
|
||||||
int numPointLights = 0, numDirectionalLights = 0, numSpotLights = 0;
|
int numPointLights = 0, numDirectionalLights = 0, numSpotLights = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user