diff options
| author | iwubcode <iwubcode@users.noreply.github.com> | 2025-10-29 00:25:11 -0500 |
|---|---|---|
| committer | iwubcode <iwubcode@users.noreply.github.com> | 2025-10-31 13:27:50 -0500 |
| commit | ee7c476e24d59af2c6b8e24486cd08ff09946112 (patch) | |
| tree | c4e95333a7d2465fa10c955fbb0812c754d9166c /Source/Core/VideoCommon/FramebufferManager.cpp | |
| parent | b920182c97703b3df0fcb44cebdd6d1cc5485fcc (diff) | |
VideoCommon: move global variables out of BPFunctions
Diffstat (limited to 'Source/Core/VideoCommon/FramebufferManager.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/FramebufferManager.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/Source/Core/VideoCommon/FramebufferManager.cpp b/Source/Core/VideoCommon/FramebufferManager.cpp index bec54b5b10..d57887c38c 100644 --- a/Source/Core/VideoCommon/FramebufferManager.cpp +++ b/Source/Core/VideoCommon/FramebufferManager.cpp @@ -856,7 +856,8 @@ void FramebufferManager::PopulateEFBCache(bool depth, u32 tile_index, bool async } void FramebufferManager::ClearEFB(const MathUtil::Rectangle<int>& rc, bool color_enable, - bool alpha_enable, bool z_enable, u32 color, u32 z) + bool alpha_enable, bool z_enable, u32 color, u32 z, + PixelFormat pixel_format) { FlushEFBPokes(); FlagPeekCacheAsOutOfDate(); @@ -870,9 +871,8 @@ void FramebufferManager::ClearEFB(const MathUtil::Rectangle<int>& rc, bool color // channel to 0xFF. // On backends that don't allow masking Alpha clears, this allows us to use the fast path // almost all the time - if (bpmem.zcontrol.pixel_format == PixelFormat::RGB565_Z16 || - bpmem.zcontrol.pixel_format == PixelFormat::RGB8_Z24 || - bpmem.zcontrol.pixel_format == PixelFormat::Z24) + if (pixel_format == PixelFormat::RGB565_Z16 || pixel_format == PixelFormat::RGB8_Z24 || + pixel_format == PixelFormat::Z24) { // Force alpha writes, and clear the alpha channel. alpha_enable = true; @@ -880,9 +880,6 @@ void FramebufferManager::ClearEFB(const MathUtil::Rectangle<int>& rc, bool color } g_gfx->ClearRegion(target_rc, color_enable, alpha_enable, z_enable, color, z); - - // Scissor rect must be restored. - BPFunctions::SetScissorAndViewport(); } bool FramebufferManager::CompileClearPipelines() |
