summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/SamplerCache.cpp
diff options
context:
space:
mode:
authorMarkus Wick <degasus@users.noreply.github.com>2015-11-19 12:42:16 +0100
committerMarkus Wick <degasus@users.noreply.github.com>2015-11-19 12:42:16 +0100
commit41f9d4f5fa8934ac7dd13cc4ac31cb90d29b97a8 (patch)
tree09c95efe4aebd9bf28ba72f9ac7dd1895fe0e807 /Source/Core/VideoBackends/OGL/SamplerCache.cpp
parent1f4b16dacfae71c0479c5a63452adcc25ea32337 (diff)
parented5e3c054e58b7547cead222048676f32ce8858d (diff)
Merge pull request #3271 from Sonicadvance1/es_sampler_cache
Enable Anisotropic filtering in ES.
Diffstat (limited to 'Source/Core/VideoBackends/OGL/SamplerCache.cpp')
-rw-r--r--Source/Core/VideoBackends/OGL/SamplerCache.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/Core/VideoBackends/OGL/SamplerCache.cpp b/Source/Core/VideoBackends/OGL/SamplerCache.cpp
index b1f7d40fa7..3c9a258ffb 100644
--- a/Source/Core/VideoBackends/OGL/SamplerCache.cpp
+++ b/Source/Core/VideoBackends/OGL/SamplerCache.cpp
@@ -129,12 +129,10 @@ void SamplerCache::SetParameters(GLuint sampler_id, const Params& params)
glSamplerParameterf(sampler_id, GL_TEXTURE_MAX_LOD, tm1.max_lod / 16.f);
if (GLInterface->GetMode() == GLInterfaceMode::MODE_OPENGL)
- {
glSamplerParameterf(sampler_id, GL_TEXTURE_LOD_BIAS, (s32)tm0.lod_bias / 32.f);
- if (g_ActiveConfig.iMaxAnisotropy > 0)
- glSamplerParameterf(sampler_id, GL_TEXTURE_MAX_ANISOTROPY_EXT, (float)(1 << g_ActiveConfig.iMaxAnisotropy));
- }
+ if (g_ActiveConfig.iMaxAnisotropy > 0 && g_ogl_config.bSupportsAniso)
+ glSamplerParameterf(sampler_id, GL_TEXTURE_MAX_ANISOTROPY_EXT, (float)(1 << g_ActiveConfig.iMaxAnisotropy));
}
void SamplerCache::Clear()