From c5ba04d8c4f303ad621bfb295a37668bc1b3bb9c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 2 Jul 2014 21:11:48 +0300 Subject: Rename some variables in renderers. --- src/render/safeopenglgraphics.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/render/safeopenglgraphics.cpp') 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); } } -- cgit v1.2.3-70-g09d2