diff options
Diffstat (limited to 'src/render/safeopenglgraphics.cpp')
-rw-r--r-- | src/render/safeopenglgraphics.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/render/safeopenglgraphics.cpp b/src/render/safeopenglgraphics.cpp index fc202df44..c67b84377 100644 --- a/src/render/safeopenglgraphics.cpp +++ b/src/render/safeopenglgraphics.cpp @@ -38,7 +38,7 @@ #include "debug.h" -GLuint SafeOpenGLGraphics::mLastImage = 0; +GLuint SafeOpenGLGraphics::mTextureBinded = 0; SafeOpenGLGraphics::SafeOpenGLGraphics() : mTexture(false), @@ -684,7 +684,7 @@ void SafeOpenGLGraphics::setTexturingAndBlending(const bool enable) } else { - mLastImage = 0; + mTextureBinded = 0; if (mAlpha && !mColorAlpha) { glDisable(GL_BLEND); @@ -728,9 +728,9 @@ void SafeOpenGLGraphics::drawRectangle(const Rect& rect, void SafeOpenGLGraphics::bindTexture(const GLenum target, const GLuint texture) { - if (mLastImage != texture) + if (mTextureBinded != texture) { - mLastImage = texture; + mTextureBinded = texture; glBindTexture(target, texture); } } |