summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/SamplerCache.cpp
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2014-01-17 16:49:51 +0100
committerdegasus <wickmarkus@web.de>2014-01-17 16:49:51 +0100
commit5a599d472e49ef364748b880c379617635622280 (patch)
tree00aaf55b551d650373fd6e0987f381c812be6c42 /Source/Core/VideoBackends/OGL/SamplerCache.cpp
parent355df60abdfab7c2476f5fa7848329c69da066a3 (diff)
parente932a349e85be407e6106f0ca63a0c104a276880 (diff)
Merge branch 'GLExtensions'
Diffstat (limited to 'Source/Core/VideoBackends/OGL/SamplerCache.cpp')
-rw-r--r--Source/Core/VideoBackends/OGL/SamplerCache.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/Source/Core/VideoBackends/OGL/SamplerCache.cpp b/Source/Core/VideoBackends/OGL/SamplerCache.cpp
index 2b50652ade..01f5959c57 100644
--- a/Source/Core/VideoBackends/OGL/SamplerCache.cpp
+++ b/Source/Core/VideoBackends/OGL/SamplerCache.cpp
@@ -99,12 +99,13 @@ void SamplerCache::SetParameters(GLuint sampler_id, const Params& params)
glSamplerParameterf(sampler_id, GL_TEXTURE_MIN_LOD, tm1.min_lod / 16.f);
glSamplerParameterf(sampler_id, GL_TEXTURE_MAX_LOD, tm1.max_lod / 16.f);
-#ifndef USE_GLES3
- glSamplerParameterf(sampler_id, GL_TEXTURE_LOD_BIAS, (s32)tm0.lod_bias / 32.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));
-#endif
+ if (g_ActiveConfig.iMaxAnisotropy > 0)
+ glSamplerParameterf(sampler_id, GL_TEXTURE_MAX_ANISOTROPY_EXT, (float)(1 << g_ActiveConfig.iMaxAnisotropy));
+ }
}
void SamplerCache::Clear()