From efcee136d7ab46a73286f1ac016d6e3b6a3faed4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 23 Oct 2012 22:48:25 +0300 Subject: Fix texture sampler settings again. --- src/resources/openglimagehelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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, -- cgit v1.2.3-70-g09d2