Skip to content

Commit

Permalink
port: temporary fix for explosion texture colors
Browse files Browse the repository at this point in the history
  • Loading branch information
fgsfdsfgs committed Aug 15, 2023
1 parent 9aa15c6 commit 6a749bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/texdecompress.c
Original file line number Diff line number Diff line change
Expand Up @@ -1577,7 +1577,7 @@ s32 texChannelsToPixels(u8 *src, s32 width, s32 height, u8 *dst, s32 format)
case TEXFORMAT_RGBA16:
for (y = 0; y < height; y++) {
for (x = 0; x < width; x++) {
dst16[x] = src[pos] << 11 | src[pos + mult] << 6 | src[pos + mult * 2] << 1 | src[pos + mult * 3];
dst16[x] = PD_BE16(src[pos] << 11 | src[pos + mult] << 6 | src[pos + mult * 2] << 1 | src[pos + mult * 3]);
pos++;
}

Expand Down

0 comments on commit 6a749bd

Please sign in to comment.