mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 23:55:40 +00:00
GPU: Skip zero-width or height fills
This commit is contained in:
parent
2e53bf914e
commit
61a4960380
|
@ -459,7 +459,9 @@ bool GPU::HandleFillRectangleCommand()
|
|||
|
||||
Log_DebugPrintf("Fill VRAM rectangle offset=(%u,%u), size=(%u,%u)", dst_x, dst_y, width, height);
|
||||
|
||||
if (width > 0 && height > 0)
|
||||
FillVRAM(dst_x, dst_y, width, height, color);
|
||||
|
||||
m_stats.num_vram_fills++;
|
||||
AddCommandTicks(46 + ((width / 8) + 9) * height);
|
||||
EndCommand();
|
||||
|
|
Loading…
Reference in a new issue