mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 13:55:38 +00:00
GPU: Synchronize before filling/writing with interlaced rendering
This commit is contained in:
parent
88cc695d0b
commit
096ed21767
|
@ -446,6 +446,9 @@ bool GPU::HandleFillRectangleCommand()
|
|||
{
|
||||
CHECK_COMMAND_SIZE(3);
|
||||
|
||||
if (IsInterlacedRenderingEnabled() && IsRasterScanlinePending())
|
||||
Synchronize();
|
||||
|
||||
FlushRender();
|
||||
|
||||
const u32 color = m_fifo.Pop() & 0x00FFFFFF;
|
||||
|
@ -499,7 +502,11 @@ void GPU::FinishVRAMWrite()
|
|||
m_blit_buffer.data(), true);
|
||||
}
|
||||
|
||||
if (IsInterlacedRenderingEnabled() && IsRasterScanlinePending())
|
||||
Synchronize();
|
||||
|
||||
FlushRender();
|
||||
|
||||
UpdateVRAM(m_vram_transfer.x, m_vram_transfer.y, m_vram_transfer.width, m_vram_transfer.height, m_blit_buffer.data());
|
||||
m_blit_buffer.clear();
|
||||
m_vram_transfer = {};
|
||||
|
|
Loading…
Reference in a new issue