Commit f82f640
committed
r_showLightGrid: fix wrong colors displayed
Sometimes color values were slightly greater than 1; this led to
an incorrect float color -> byte color conversion. Fix it by
clamping the colors in Tess_AddTetrahedron.1 parent ced7066 commit f82f640
2 files changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3210 | 3210 | | |
3211 | 3211 | | |
3212 | 3212 | | |
3213 | | - | |
| 3213 | + | |
3214 | 3214 | | |
3215 | 3215 | | |
3216 | 3216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
402 | | - | |
| 402 | + | |
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
| 408 | + | |
408 | 409 | | |
409 | 410 | | |
410 | 411 | | |
| |||
0 commit comments