GPU: Flush rendering before filling rectangle

This commit is contained in:
Connor McLaughlin 2019-10-05 23:31:19 +10:00
parent e286d6389c
commit 24bda8f659
1 changed files with 2 additions and 0 deletions

View File

@ -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;