Ensure light limit

This commit is contained in:
MrLetsplay 2023-09-16 20:30:22 +02:00
parent 656603f439
commit 777628d7e1
Signed by: mr
SSH Key Fingerprint: SHA256:92jBH80vpXyaZHjaIl47pjRq+Yt7XGTArqQg1V7hSqg

View File

@ -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;