GPU: Fix flipped MSB/LSB for single pixel reads

This commit is contained in:
Connor McLaughlin 2020-03-30 00:41:31 +10:00
parent f13cfce34d
commit eaf13a1461
1 changed files with 1 additions and 1 deletions

View File

@ -653,7 +653,7 @@ u32 GPU::ReadGPUREAD()
// Read with correct wrap-around behavior.
const u16 read_x = (m_vram_transfer.x + m_vram_transfer.col) % VRAM_WIDTH;
const u16 read_y = (m_vram_transfer.y + m_vram_transfer.row) % VRAM_HEIGHT;
value = (ZeroExtend32(m_vram_ptr[read_y * VRAM_WIDTH + read_x]) << 16) | (value >> 16);
value |= ZeroExtend32(m_vram_ptr[read_y * VRAM_WIDTH + read_x]) << (i * 16);
if (++m_vram_transfer.col == m_vram_transfer.width)
{