Set blue channel to 128 for BC5S

This commit is contained in:
Andrew Murray 2023-09-21 16:38:45 +10:00
parent e57b08affd
commit 352bcaac74
2 changed files with 1 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 95 KiB

After

Width:  |  Height:  |  Size: 95 KiB

View File

@ -854,7 +854,7 @@ decode_bcn(
int sign = strcmp(pixel_format, "BC5S") == 0 ? 1 : 0;
while (bytes >= 16) {
rgba col[16];
memset(col, 0, 16 * sizeof(col[0]));
memset(col, sign ? 128 : 0, 16 * sizeof(col[0]));
decode_bc5_block(col, ptr, sign);
put_block(im, state, (const char *)col, sizeof(col[0]), C);
ptr += 16;