From 29690c4635e069766ce7e20c564dedaadc8d066c Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 17 Jan 2021 01:34:43 +1000 Subject: [PATCH] GPU/SW: Fix interlaced output getting corrupted when size changes Fixes glitches in screen when tilting table in Pro Pinball. --- src/core/gpu_sw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/gpu_sw.cpp b/src/core/gpu_sw.cpp index 3fe04ad64..772618026 100644 --- a/src/core/gpu_sw.cpp +++ b/src/core/gpu_sw.cpp @@ -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(width * sizeof(OutputPixelType), 4); + dst_stride = VRAM_WIDTH * sizeof(OutputPixelType); dst_ptr = m_display_texture_buffer.data() + (field != 0 ? dst_stride : 0); }