mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 17:24:31 +03:00
Fix BC6 block decoder
This commit is contained in:
parent
04e9854417
commit
f58c0ea533
|
@ -750,8 +750,10 @@ decode_bc6_block(rgb32f *col, const UINT8 *src, int sign) {
|
|||
}
|
||||
}
|
||||
if (info->tr) { /* apply deltas */
|
||||
for (i = 3; i < numep; i++) {
|
||||
for (i = 3; i < numep; i += 3) {
|
||||
endpoints[i] = (endpoints[i] + 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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user