Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
OGL/SamplerCache: Treat lod_bias as a signed integer.
  • Loading branch information
NeoBrainX authored and NeoBrainX committed Jul 22, 2013
1 parent c6ae08f commit 9795d10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Plugins/Plugin_VideoOGL/Src/SamplerCache.cpp
Expand Up @@ -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));
Expand Down

0 comments on commit 9795d10

Please sign in to comment.