Fix: EEVEE missing break in switch case

this was working because the following cases overwrite the previous set,
but it's still better to have a `break`.
This commit is contained in:
Weizhen Huang
2024-07-17 15:34:16 +02:00
parent da59808ce1
commit 275d90f2b0

View File

@@ -63,13 +63,16 @@ void closure_light_set(inout ClosureLightStack stack, int index, ClosureLight cl
switch (index) {
case 0:
stack.cl[0] = cl_light;
break;
#if LIGHT_CLOSURE_EVAL_COUNT > 1
case 1:
stack.cl[1] = cl_light;
break;
#endif
#if LIGHT_CLOSURE_EVAL_COUNT > 2
case 2:
stack.cl[2] = cl_light;
break;
#endif
#if LIGHT_CLOSURE_EVAL_COUNT > 3
# error