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/mobileopenglgraphics.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/render/mobileopenglgraphics.cpp') diff --git a/src/render/mobileopenglgraphics.cpp b/src/render/mobileopenglgraphics.cpp index 555b8d33b..a38a291be 100644 --- a/src/render/mobileopenglgraphics.cpp +++ b/src/render/mobileopenglgraphics.cpp @@ -67,7 +67,7 @@ vVar[vp + 10] = static_cast(dstX + w); \ vVar[vp + 11] = static_cast(dstY + h); -GLuint MobileOpenGLGraphics::mLastImage = 0; +GLuint MobileOpenGLGraphics::mTextureBinded = 0; #ifdef DEBUG_DRAW_CALLS unsigned int MobileOpenGLGraphics::mDrawCalls = 0; unsigned int MobileOpenGLGraphics::mLastDrawCalls = 0; @@ -1096,7 +1096,7 @@ void MobileOpenGLGraphics::setTexturingAndBlending(const bool enable) } else { - mLastImage = 0; + mTextureBinded = 0; if (mAlpha && !mColorAlpha) { glDisable(GL_BLEND); @@ -1222,9 +1222,9 @@ void MobileOpenGLGraphics::drawNet(const int x1, const int y1, void MobileOpenGLGraphics::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