From 277829d842ae4aca234de95fb295ed9da043a9fa Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sat, 4 Mar 2017 16:39:50 +1000 Subject: VideoCommon: Eliminate static state in Renderer --- Source/Core/VideoCommon/BPFunctions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/VideoCommon/BPFunctions.cpp') 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(new_format), static_cast(bpmem.zcontrol.zformat)); - Renderer::StorePixelFormat(new_format); + g_renderer->StorePixelFormat(new_format); } void SetInterlacingMode(const BPCmd& bp) -- cgit v1.2.3