mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 23:31:53 -05:00
Stop incrementing light_count once max number of lights are reached in 2D canvas renderer
This commit is contained in:
@@ -455,7 +455,7 @@ void RendererCanvasRenderRD::_render_item(RD::DrawListID p_draw_list, RID p_rend
|
||||
|
||||
light_count++;
|
||||
|
||||
if (light_count == MAX_LIGHTS_PER_ITEM) {
|
||||
if (light_count == MAX_LIGHTS_PER_ITEM - 1) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user