summaryrefslogtreecommitdiff
path: root/src/resources/openglimagehelper.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-23 22:48:25 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-23 22:50:35 +0300
commitefcee136d7ab46a73286f1ac016d6e3b6a3faed4 (patch)
tree92d49d960aea26f8da5edee7c7c99970d4cc16c6 /src/resources/openglimagehelper.cpp
parent8a4f26c670cdcf5bf0d4e58d2571e18b33085c5a (diff)
downloadplus-efcee136d7ab46a73286f1ac016d6e3b6a3faed4.tar.gz
plus-efcee136d7ab46a73286f1ac016d6e3b6a3faed4.tar.bz2
plus-efcee136d7ab46a73286f1ac016d6e3b6a3faed4.tar.xz
plus-efcee136d7ab46a73286f1ac016d6e3b6a3faed4.zip
Fix texture sampler settings again.
Diffstat (limited to 'src/resources/openglimagehelper.cpp')
-rw-r--r--src/resources/openglimagehelper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/openglimagehelper.cpp b/src/resources/openglimagehelper.cpp
index 31680c1bd..a162ccf59 100644
--- a/src/resources/openglimagehelper.cpp
+++ b/src/resources/openglimagehelper.cpp
@@ -236,8 +236,8 @@ 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);
}
+ glTexParameteri(mTextureType, GL_TEXTURE_MAX_LEVEL, 0);
glTexImage2D(mTextureType, 0, mInternalTextureType,
tmpImage->w, tmpImage->h,