mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00:00
d3d12: Fix r5g6b5 only using half texture
This commit is contained in:
parent
5ca02a5053
commit
c1abf80b40
1 changed files with 1 additions and 1 deletions
|
@ -238,7 +238,7 @@ size_t D3D12GSRender::UploadTextures()
|
|||
|
||||
for (int j = 0; j < m_textures[i].GetWidth(); j++)
|
||||
{
|
||||
u16 tmp = src[row * m_texture_pitch + j];
|
||||
u16 tmp = src[row * m_texture_pitch / 2 + j];
|
||||
dst[row * rowPitch / 2 + j] = (tmp >> 8) | (tmp << 8);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue