Commit ed2a8f4
committed
drivers/glrend/cache: fix radii lights when inner == outer
First of all, it was meant to be 1e-6, not 1e6.
But regardless, that behaviour doesn't match what it did originally.
softrend/setup.c does this:
if (lp->radius_inner != lp->radius_outer)
alp->falloff = BR_DIV(alp->intensity, lp->radius_inner - lp->radius_outer);
i.e. no falloff if they're equal. Replicate this behaviour.1 parent fb36b63 commit ed2a8f4
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| |||
0 commit comments