summaryrefslogtreecommitdiff
path: root/Source/Plugins/Plugin_VideoOGL/Src/SamplerCache.cpp
diff options
context:
space:
mode:
authorRyan Houdek <Sonicadvance1@gmail.com>2013-07-13 17:24:23 -0500
committerRyan Houdek <Sonicadvance1@gmail.com>2013-07-13 17:24:23 -0500
commit737df2a68cd5c5cdfa1e73cede0dbf85bde01abc (patch)
treec1aae182867da795ce0016c46fa4b58accb15071 /Source/Plugins/Plugin_VideoOGL/Src/SamplerCache.cpp
parent52cb398804a4f7f4e31e2040bbabd1bf90c581f6 (diff)
Patch from Degasus that removes the last of the the GL_TEXTURE_RECTANGLE usages. This is needed to have GLES3 support.
Diffstat (limited to 'Source/Plugins/Plugin_VideoOGL/Src/SamplerCache.cpp')
-rw-r--r--Source/Plugins/Plugin_VideoOGL/Src/SamplerCache.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Plugins/Plugin_VideoOGL/Src/SamplerCache.cpp b/Source/Plugins/Plugin_VideoOGL/Src/SamplerCache.cpp
index 87aac2da0c..3fe2737e3f 100644
--- a/Source/Plugins/Plugin_VideoOGL/Src/SamplerCache.cpp
+++ b/Source/Plugins/Plugin_VideoOGL/Src/SamplerCache.cpp
@@ -95,13 +95,15 @@ void SamplerCache::SetParameters(GLuint sampler_id, const Params& params)
glSamplerParameteri(sampler_id, GL_TEXTURE_WRAP_S, wrap_settings[tm0.wrap_s]);
glSamplerParameteri(sampler_id, GL_TEXTURE_WRAP_T, wrap_settings[tm0.wrap_t]);
- glSamplerParameterf(sampler_id, GL_TEXTURE_LOD_BIAS, tm0.lod_bias / 32.f);
-
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, tm0.lod_bias / 32.f);
+
if (g_ActiveConfig.iMaxAnisotropy > 0)
glSamplerParameterf(sampler_id, GL_TEXTURE_MAX_ANISOTROPY_EXT, (float)(1 << g_ActiveConfig.iMaxAnisotropy));
+#endif
}
void SamplerCache::Clear()