mirror of https://github.com/RPCS3/rpcs3.git
d3d12: Fix r5g6b5 only using half texture
This commit is contained in:
parent
5ca02a5053
commit
c1abf80b40
|
@ -238,7 +238,7 @@ size_t D3D12GSRender::UploadTextures()
|
||||||
|
|
||||||
for (int j = 0; j < m_textures[i].GetWidth(); j++)
|
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);
|
dst[row * rowPitch / 2 + j] = (tmp >> 8) | (tmp << 8);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue