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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user