summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/SamplerCache.cpp
diff options
context:
space:
mode:
authorPokechu22 <Pokechu022@gmail.com>2021-07-30 12:14:54 -0700
committerJordan Woyak <jordan.woyak@gmail.com>2025-03-17 20:46:19 -0500
commit79a1e480ca75046ef932f26a4c72022422bcd485 (patch)
treee41c86998d468986fc89731897d4cf3fbc901020 /Source/Core/VideoBackends/OGL/SamplerCache.cpp
parent029954020938855b05f7ed199ef482ea24de5530 (diff)
Enable anisotropic filtering when the game requests it
Diffstat (limited to 'Source/Core/VideoBackends/OGL/SamplerCache.cpp')
-rw-r--r--Source/Core/VideoBackends/OGL/SamplerCache.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/OGL/SamplerCache.cpp b/Source/Core/VideoBackends/OGL/SamplerCache.cpp
index 56246ea246..6657f3482a 100644
--- a/Source/Core/VideoBackends/OGL/SamplerCache.cpp
+++ b/Source/Core/VideoBackends/OGL/SamplerCache.cpp
@@ -102,10 +102,10 @@ void SamplerCache::SetParameters(GLuint sampler_id, const SamplerState& params)
glSamplerParameterf(sampler_id, GL_TEXTURE_LOD_BIAS, params.tm0.lod_bias / 256.f);
}
- if (params.tm0.anisotropic_filtering && g_ogl_config.bSupportsAniso)
+ if (params.tm0.anisotropic_filtering != 0 && g_ogl_config.bSupportsAniso)
{
glSamplerParameterf(sampler_id, GL_TEXTURE_MAX_ANISOTROPY_EXT,
- static_cast<float>(1 << g_ActiveConfig.iMaxAnisotropy));
+ static_cast<float>(1 << params.tm0.anisotropic_filtering));
}
}