summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/SamplerCache.cpp
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2025-03-23 15:17:24 -0400
committerGitHub <noreply@github.com>2025-03-23 15:17:24 -0400
commit9b0471532ce8f715c2c681cb7fb7173e75708104 (patch)
tree426ee98d5c5616aad80a7da1870d2ca288be423c /Source/Core/VideoBackends/OGL/SamplerCache.cpp
parent2da255d8cdb2da67123296f5f091f808c696d021 (diff)
parent561aee7707d4ace0d987deed6c8084178c653c3d (diff)
Merge pull request #13368 from jordan-woyak/anisotropic-filtering
Use Game Requested Anisotropic Filtering
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));
}
}