From d2574c4b493125f9b16f842c3abc94c3693efe36 Mon Sep 17 00:00:00 2001 From: fgsfds Date: Mon, 28 Aug 2023 16:02:37 +0200 Subject: [PATCH] port: fix RGB555 textures in Grid fix submitted by Ryan --- src/game/texdecompress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/texdecompress.c b/src/game/texdecompress.c index 2b0e6cb52..ad35e5f91 100644 --- a/src/game/texdecompress.c +++ b/src/game/texdecompress.c @@ -1603,7 +1603,7 @@ s32 texChannelsToPixels(u8 *src, s32 width, s32 height, u8 *dst, s32 format) case TEXFORMAT_RGB15: 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 | 1; + dst16[x] = PD_BE16(src[pos] << 11 | src[pos + mult] << 6 | src[pos + mult * 2] << 1 | 1); pos++; }