From 24bda8f65950e5bc1fdb21b81576faf9768de45c Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 5 Oct 2019 23:31:19 +1000 Subject: [PATCH] GPU: Flush rendering before filling rectangle --- src/core/gpu.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/gpu.cpp b/src/core/gpu.cpp index 1573756a5..de03f3f56 100644 --- a/src/core/gpu.cpp +++ b/src/core/gpu.cpp @@ -727,6 +727,8 @@ bool GPU::HandleFillRectangleCommand() if (m_GP0_command.size() < 3) return false; + FlushRender(); + const u32 color = m_GP0_command[0] & UINT32_C(0x00FFFFFF); const u32 dst_x = m_GP0_command[1] & UINT32_C(0xFFFF); const u32 dst_y = m_GP0_command[1] >> 16;