Skip to content

Commit

Permalink
Do not specify max LOD for no-mipmap textures.
Browse files Browse the repository at this point in the history
Fixes hrydgard#6077, incorrect filtering with no mipmaps in Popolocrois.
This was causing it to use the mag filtering setting, even when minifying.
  • Loading branch information
unknownbrackets committed May 14, 2014
1 parent 673f264 commit 2d12eb3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion GPU/GLES/TextureCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1285,7 +1285,6 @@ void TextureCache::SetTexture(bool force) {
} else {
#ifndef USING_GLES2
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAX_LEVEL, 0);
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAX_LOD, 0);
#elif defined(MAY_HAVE_GLES3)
if (gl_extensions.GLES3) {
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAX_LEVEL, 0);
Expand Down

0 comments on commit 2d12eb3

Please sign in to comment.