d3d12: Fix r5g6b5 only using half texture

This commit is contained in:
vlj 2015-06-01 19:02:11 +02:00 committed by Vincent Lejeune
parent 5ca02a5053
commit c1abf80b40
1 changed files with 1 additions and 1 deletions

View File

@ -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);
} }
} }