forked from Ports/perfect_dark
port: fix RGB555 textures in Grid
fix submitted by Ryan
This commit is contained in:
1 parent
0e5b4bde62
commit
d2574c4b49
1 file changed
+1
-1
@@ -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++;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user