diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-23 19:12:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-23 19:12:31 +0300 |
commit | a1521294fda5b8b5bba3e7b512573bfcbc4c7fbe (patch) | |
tree | 483ad5a5774665a1c1a33d856c2c647d2e4c454a | |
parent | 7f8227ad083ba3973e345efc7a23ee4b64059112 (diff) | |
download | plus-a1521294fda5b8b5bba3e7b512573bfcbc4c7fbe.tar.gz plus-a1521294fda5b8b5bba3e7b512573bfcbc4c7fbe.tar.bz2 plus-a1521294fda5b8b5bba3e7b512573bfcbc4c7fbe.tar.xz plus-a1521294fda5b8b5bba3e7b512573bfcbc4c7fbe.zip |
Dont call glTexEnvf in mobileopengl and modernopengl.
-rw-r--r-- | src/resources/openglimagehelper.cpp | 3 |
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) { |