From b90833a462bae958c7ca2aa10bae2fa1f342bcd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 13 Apr 2023 00:01:05 +0200 Subject: [PATCH] OpenGL texture filtering: enforce key.mipEnable when we're forcing mips. Fixes #17268, but I feel we could possibly get rid of the bool entirely since we have maxlevel. Only GL and D3D even looks at this flag. Oh well, that's for later. --- GPU/Common/TextureCacheCommon.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/GPU/Common/TextureCacheCommon.cpp b/GPU/Common/TextureCacheCommon.cpp index 4984df18e8..8f0ffb40d2 100644 --- a/GPU/Common/TextureCacheCommon.cpp +++ b/GPU/Common/TextureCacheCommon.cpp @@ -256,6 +256,7 @@ SamplerCacheKey TextureCacheCommon::GetSamplingParams(int maxLevel, const TexCac if (entry && replacer_.Enabled() && entry->replacedTexture && entry->replacedTexture->State() == ReplacementState::ACTIVE) { // If replacement textures have multiple mip levels, enforce mip filtering. if (entry->replacedTexture->NumLevels() > 1) { + key.mipEnable = true; key.mipFilt = 1; key.maxLevel = 9 * 256; }