GPU: Skip primitives where clip area is invalid

Fixes palettes being overwritten/menus being broken in
Yoshimoto Mahjong Club Deluxe.
This commit is contained in:
Connor McLaughlin
2020-06-14 01:01:01 +10:00
parent 16c47f4553
commit fc0560087f
3 changed files with 24 additions and 1 deletions

View File

@ -394,6 +394,9 @@ protected:
BoolToUInt8(m_render_command.shading_enable);
}
/// Returns true if the drawing area is valid (i.e. left <= right, top <= bottom).
ALWAYS_INLINE bool IsDrawingAreaIsValid() const { return m_drawing_area.Valid(); }
void AddCommandTicks(TickCount ticks);
void WriteGP1(u32 value);