diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2022-05-02 09:52:55 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2022-05-02 09:57:48 -0700 |
commit | 51e38e69f075d99bbab13d52e3c70840bf341cc4 (patch) | |
tree | db4f45c35a575f9c5db30e0de6be196e82cf66e3 /src/modules/ray | |
parent | 8292d95533801b41ee4b05edc0bf296394085528 (diff) |
modules/submit: fix bilerp mode out-of-bounds access
Found via -fsanitize=address, this is a quick and dirty way to
prevent the OOB access without adding more conditionals, just
prevent scaling the fragment dimensions to the full grid
dimensions.
This could be done better by reworking things a bit and putting
zero at the center of the grid with a -1..+1 mapping, so rounding
towards zero would land in the middle as opposed to off the
start, with the existing .5f offset.
But for now just fix the bug, nobody will notice the slight LCD
overscan-style difference of bilerp=on vs. off due to this way.
Diffstat (limited to 'src/modules/ray')
0 files changed, 0 insertions, 0 deletions