summaryrefslogtreecommitdiff
path: root/src/common/algorithm.h
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-06-15 20:16:16 -0400
committerameerj <52414509+ameerj@users.noreply.github.com>2021-06-15 20:19:01 -0400
commit5fc8393125ef0084491b7acaec13e62fe593adf1 (patch)
tree160ed78eb6e0df36e8462e4982b4eaa7ce9d66b1 /src/common/algorithm.h
parentf9bfeaa2bc8d3247ca5012243bb42d8831b5dd4b (diff)
astc_decoder: Fix LDR CEM1 endpoint calculation
Per the spec, L1 is clamped to the value 0xff if it is greater than 0xff. An oversight caused us to take the maximum of L1 and 0xff, rather than the minimum. Huge thanks to wwylele for finding this. Co-Authored-By: Weiyi Wang <wwylele@gmail.com>
Diffstat (limited to 'src/common/algorithm.h')
0 files changed, 0 insertions, 0 deletions