From ddad9b5526cb5c4831968fd5346a07a7016bdd2b Mon Sep 17 00:00:00 2001 From: RSDuck Date: Mon, 17 Apr 2023 21:58:51 +0200 Subject: [PATCH] fix full color textures --- src/GPU3D_Compute.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GPU3D_Compute.cpp b/src/GPU3D_Compute.cpp index bfb10e92..1d1bd831 100644 --- a/src/GPU3D_Compute.cpp +++ b/src/GPU3D_Compute.cpp @@ -744,11 +744,11 @@ ComputeRenderer::TexCacheEntry& ComputeRenderer::GetTexture(u32 texParam, u32 pa { entry.TextureRAMSize[0] = width*height*2; - for (u32 i = 0; i < width*height; i += 2) + for (u32 i = 0; i < width*height; i++) { u16 value = *(u16*)&GPU::VRAMFlat_Texture[addr + i * 2]; - TextureDecodingBuffer[i] = ConvertRGB5ToRGB6(value); + TextureDecodingBuffer[i] = ConvertRGB5ToRGB6(value) | (value & 0x8000 ? 0x1F000000 : 0); } } else if (fmt == 5)