summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/BPFunctions.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2017-03-04 16:39:50 +1000
committerStenzek <stenzek@gmail.com>2017-03-04 16:39:50 +1000
commit277829d842ae4aca234de95fb295ed9da043a9fa (patch)
tree43d6e4aa6db60b2f54a50ae09772ff0bd9962d28 /Source/Core/VideoCommon/BPFunctions.cpp
parentde230f3ebed097ec10dc86465744c17aea032d2e (diff)
VideoCommon: Eliminate static state in Renderer
Diffstat (limited to 'Source/Core/VideoCommon/BPFunctions.cpp')
-rw-r--r--Source/Core/VideoCommon/BPFunctions.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/BPFunctions.cpp b/Source/Core/VideoCommon/BPFunctions.cpp
index af114006b5..0bb2844a62 100644
--- a/Source/Core/VideoCommon/BPFunctions.cpp
+++ b/Source/Core/VideoCommon/BPFunctions.cpp
@@ -156,7 +156,7 @@ void OnPixelFormatChange()
if (!g_ActiveConfig.bEFBEmulateFormatChanges)
return;
- auto old_format = Renderer::GetPrevPixelFormat();
+ auto old_format = g_renderer->GetPrevPixelFormat();
auto new_format = bpmem.zcontrol.pixel_format;
// no need to reinterpret pixel data in these cases
@@ -209,7 +209,7 @@ skip:
DEBUG_LOG(VIDEO, "pixelfmt: pixel=%d, zc=%d", static_cast<int>(new_format),
static_cast<int>(bpmem.zcontrol.zformat));
- Renderer::StorePixelFormat(new_format);
+ g_renderer->StorePixelFormat(new_format);
}
void SetInterlacingMode(const BPCmd& bp)