mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2024-11-15 05:47:43 -07:00
fix full color textures
This commit is contained in:
parent
fd073cdae7
commit
ddad9b5526
@ -744,11 +744,11 @@ ComputeRenderer::TexCacheEntry& ComputeRenderer::GetTexture(u32 texParam, u32 pa
|
|||||||
{
|
{
|
||||||
entry.TextureRAMSize[0] = width*height*2;
|
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];
|
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)
|
else if (fmt == 5)
|
||||||
|
Loading…
Reference in New Issue
Block a user