mirror of https://github.com/AxioDL/metaforce.git
CCubeRenderer: Limit dynamic light count in ActivateLightsForModel
This commit is contained in:
parent
3800322735
commit
9bcb06d92a
|
@ -519,6 +519,10 @@ void CCubeRenderer::ActivateLightsForModel(const CAreaListItem* areaItem, CCubeM
|
|||
|
||||
u32 lightIdx = 0;
|
||||
for (const auto& light : x300_dynamicLights) {
|
||||
if (lightIdx >= LightCount) {
|
||||
break;
|
||||
}
|
||||
|
||||
if (lightOctreeWords == nullptr || TestBit(lightOctreeWords, model.GetIndex())) {
|
||||
bool loaded = false;
|
||||
const float radius =
|
||||
|
|
Loading…
Reference in New Issue