From a310cbec8e7dfa18b22d53dc45a47757a97c827d Mon Sep 17 00:00:00 2001 From: JosJuice Date: Fri, 3 Nov 2017 16:04:46 +0100 Subject: Fix incorrect handling of auto IR Some lines of code in Dolphin just plainly grabbed the value of g_ActiveConfig.iEFBScale, which resulted in Auto being treated as 0x rather than the actual automatically selected scale. --- Source/Core/VideoBackends/D3D/PSTextureEncoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/VideoBackends/D3D/PSTextureEncoder.cpp') diff --git a/Source/Core/VideoBackends/D3D/PSTextureEncoder.cpp b/Source/Core/VideoBackends/D3D/PSTextureEncoder.cpp index 6043da5c78..9b24783f6a 100644 --- a/Source/Core/VideoBackends/D3D/PSTextureEncoder.cpp +++ b/Source/Core/VideoBackends/D3D/PSTextureEncoder.cpp @@ -131,7 +131,7 @@ void PSTextureEncoder::Encode(u8* dst, const EFBCopyParams& params, u32 native_w // TODO: This only produces perfect downsampling for 2x IR, other resolutions will need more // complex down filtering to average all pixels and produce the correct result. // Also, box filtering won't be correct for anything other than 1x IR - if (scale_by_half || g_ActiveConfig.iEFBScale != 1) + if (scale_by_half || g_renderer->GetEFBScale() != 1) D3D::SetLinearCopySampler(); else D3D::SetPointCopySampler(); -- cgit v1.2.3