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.
This commit is contained in:
Henrik Rydgård 2023-04-13 00:01:05 +02:00
parent f6134d998f
commit b90833a462

View File

@ -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;
}