GPU/SW: Fix interlaced output getting corrupted when size changes

Fixes glitches in screen when tilting table in Pro Pinball.
This commit is contained in:
Connor McLaughlin 2021-01-17 01:34:43 +10:00
parent 00512f6cea
commit 29690c4635
1 changed files with 1 additions and 1 deletions

View File

@ -249,7 +249,7 @@ void GPU_SW::CopyOut15Bit(u32 src_x, u32 src_y, u32 width, u32 height, u32 field
}
else
{
dst_stride = Common::AlignUpPow2<u32>(width * sizeof(OutputPixelType), 4);
dst_stride = VRAM_WIDTH * sizeof(OutputPixelType);
dst_ptr = m_display_texture_buffer.data() + (field != 0 ? dst_stride : 0);
}