From e0090024119184238032923987af1c8d7167b7b5 Mon Sep 17 00:00:00 2001 From: Scott Mansell Date: Tue, 31 Jan 2023 15:44:38 +1300 Subject: Refactor ClearRegion And fix bug where opengl was getting the wrong coordinates --- Source/Core/VideoBackends/Software/SWGfx.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Source/Core/VideoBackends/Software/SWGfx.cpp') diff --git a/Source/Core/VideoBackends/Software/SWGfx.cpp b/Source/Core/VideoBackends/Software/SWGfx.cpp index 7e8c234540..d4758a07fa 100644 --- a/Source/Core/VideoBackends/Software/SWGfx.cpp +++ b/Source/Core/VideoBackends/Software/SWGfx.cpp @@ -107,8 +107,7 @@ void SWGfx::ShowImage(const AbstractTexture* source_texture, m_window->ShowImage(source_texture, source_rc); } -void SWGfx::ClearRegion(const MathUtil::Rectangle& rc, - const MathUtil::Rectangle& target_rc, bool colorEnable, +void SWGfx::ClearRegion(const MathUtil::Rectangle& target_rc, bool colorEnable, bool alphaEnable, bool zEnable, u32 color, u32 z) { EfbCopy::ClearEfb(); -- cgit v1.2.3