Skip to content

Commit

Permalink
Fix BC6 block decoder
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadelessFox committed Jul 17, 2022
1 parent 2258f23 commit f6bf186
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libImaging/BcnDecode.c
Expand Up @@ -751,7 +751,9 @@ decode_bc6_block(rgb32f *col, const UINT8 *src, int sign) {
}
if (info->tr) { /* apply deltas */
for (i = 3; i < numep; i++) {
endpoints[i] = (endpoints[i] + endpoints[0]) & mask;
endpoints[i + 0] = (endpoints[i + 0] + endpoints[0]) & mask;
endpoints[i + 1] = (endpoints[i + 1] + endpoints[1]) & mask;
endpoints[i + 2] = (endpoints[i + 2] + endpoints[2]) & mask;
}
if (sign) {
for (i = 3; i < numep; i += 3) {
Expand Down

0 comments on commit f6bf186

Please sign in to comment.