summaryrefslogtreecommitdiff
path: root/Source/Plugins/Plugin_VideoOGL/Src/SamplerCache.cpp
diff options
context:
space:
mode:
authorNeoBrainX <NeoBrainX@googlemail.com>2013-07-22 18:24:56 +0000
committerNeoBrainX <NeoBrainX@googlemail.com>2013-07-22 18:24:56 +0000
commit9795d10dcba732bcd3f1fded0b406831b11d7b78 (patch)
tree6eea657128d85ae63aec2e430188f9436996a051 /Source/Plugins/Plugin_VideoOGL/Src/SamplerCache.cpp
parentc6ae08fc39e3184fe585fa38248d74d2e8b6fc1f (diff)
OGL/SamplerCache: Treat lod_bias as a signed integer.
Diffstat (limited to 'Source/Plugins/Plugin_VideoOGL/Src/SamplerCache.cpp')
-rw-r--r--Source/Plugins/Plugin_VideoOGL/Src/SamplerCache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Plugins/Plugin_VideoOGL/Src/SamplerCache.cpp b/Source/Plugins/Plugin_VideoOGL/Src/SamplerCache.cpp
index 3fe2737e3f..8f986cd6c7 100644
--- a/Source/Plugins/Plugin_VideoOGL/Src/SamplerCache.cpp
+++ b/Source/Plugins/Plugin_VideoOGL/Src/SamplerCache.cpp
@@ -99,7 +99,7 @@ void SamplerCache::SetParameters(GLuint sampler_id, const Params& params)
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);
+ 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));