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/VideoCommon/VertexManagerBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon/VertexManagerBase.cpp') diff --git a/Source/Core/VideoCommon/VertexManagerBase.cpp b/Source/Core/VideoCommon/VertexManagerBase.cpp index 870b9ad1e2..f06eb9b31a 100644 --- a/Source/Core/VideoCommon/VertexManagerBase.cpp +++ b/Source/Core/VideoCommon/VertexManagerBase.cpp @@ -258,7 +258,7 @@ static void SetSamplerState(u32 index, bool custom_tex, bool has_arbitrary_mips) // that have arbitrary contents, eg. are used for fog effects where the // distance they kick in at is important to preserve at any resolution. state.lod_bias = - state.lod_bias + std::log2(static_cast(g_ActiveConfig.iEFBScale)) * 256.f; + state.lod_bias + std::log2(static_cast(g_renderer->GetEFBScale())) * 256.f; // Anisotropic also pushes mips farther away so it cannot be used either state.anisotropic_filtering = 0; -- cgit v1.2.3