summaryrefslogtreecommitdiff
path: root/src/resources/openglimagehelper.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-23 19:12:31 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-23 19:12:31 +0300
commita1521294fda5b8b5bba3e7b512573bfcbc4c7fbe (patch)
tree483ad5a5774665a1c1a33d856c2c647d2e4c454a /src/resources/openglimagehelper.cpp
parent7f8227ad083ba3973e345efc7a23ee4b64059112 (diff)
downloadmanaverse-a1521294fda5b8b5bba3e7b512573bfcbc4c7fbe.tar.gz
manaverse-a1521294fda5b8b5bba3e7b512573bfcbc4c7fbe.tar.bz2
manaverse-a1521294fda5b8b5bba3e7b512573bfcbc4c7fbe.tar.xz
manaverse-a1521294fda5b8b5bba3e7b512573bfcbc4c7fbe.zip
Dont call glTexEnvf in mobileopengl and modernopengl.
Diffstat (limited to 'src/resources/openglimagehelper.cpp')
-rw-r--r--src/resources/openglimagehelper.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resources/openglimagehelper.cpp b/src/resources/openglimagehelper.cpp
index 2eadf35ff..6877eea4e 100644
--- a/src/resources/openglimagehelper.cpp
+++ b/src/resources/openglimagehelper.cpp
@@ -231,7 +231,8 @@ Image *OpenGLImageHelper::glLoad(SDL_Surface *tmpImage,
if (SDL_MUSTLOCK(tmpImage))
SDL_LockSurface(tmpImage);
- glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
+ if (mUseOpenGL != RENDER_MODERN_OPENGL && mUseOpenGL != RENDER_GLES_OPENGL)
+ glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
if (!mUseTextureSampler)
{