summaryrefslogtreecommitdiff
path: root/src/resources/openglimagehelper.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-23 13:13:16 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-23 13:13:16 +0300
commitdd55eb469163b4863130a6adba96eb334a10e017 (patch)
tree6d3272a56e0cf275ad2dfd42369ded55a130d9b9 /src/resources/openglimagehelper.cpp
parent4ab2c210277be6cf16f86e2fcf4fa5a6c090b45e (diff)
downloadplus-dd55eb469163b4863130a6adba96eb334a10e017.tar.gz
plus-dd55eb469163b4863130a6adba96eb334a10e017.tar.bz2
plus-dd55eb469163b4863130a6adba96eb334a10e017.tar.xz
plus-dd55eb469163b4863130a6adba96eb334a10e017.zip
Set for all textures max mipmap level to 0.
Diffstat (limited to 'src/resources/openglimagehelper.cpp')
-rw-r--r--src/resources/openglimagehelper.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/openglimagehelper.cpp b/src/resources/openglimagehelper.cpp
index f1847c150..b250ad29d 100644
--- a/src/resources/openglimagehelper.cpp
+++ b/src/resources/openglimagehelper.cpp
@@ -236,6 +236,7 @@ Image *OpenGLImageHelper::glLoad(SDL_Surface *tmpImage)
glTexParameteri(mTextureType, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
glTexParameteri(mTextureType, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
}
+ glTexParameteri(mTextureType, GL_TEXTURE_MAX_LEVEL, 0);
}
glTexImage2D(mTextureType, 0, mInternalTextureType,
@@ -318,5 +319,6 @@ void OpenGLImageHelper::initTextureSampler(GLint id)
mglSamplerParameteri(id, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
mglSamplerParameteri(id, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
}
+ mglSamplerParameteri(id, GL_TEXTURE_MAX_LEVEL, 0);
}
#endif