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/normalopenglgraphics.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/render/normalopenglgraphics.cpp') diff --git a/src/render/normalopenglgraphics.cpp b/src/render/normalopenglgraphics.cpp index bbe6c8851..43191d369 100644 --- a/src/render/normalopenglgraphics.cpp +++ b/src/render/normalopenglgraphics.cpp @@ -82,7 +82,7 @@ namespace const void *vertPtr = nullptr; } // namespace -GLuint NormalOpenGLGraphics::mLastImage = 0; +GLuint NormalOpenGLGraphics::mTextureBinded = 0; #ifdef DEBUG_DRAW_CALLS unsigned int NormalOpenGLGraphics::mDrawCalls = 0; unsigned int NormalOpenGLGraphics::mLastDrawCalls = 0; @@ -1429,7 +1429,7 @@ void NormalOpenGLGraphics::setTexturingAndBlending(const bool enable) } else { - mLastImage = 0; + mTextureBinded = 0; if (mAlpha && !mColorAlpha) { glDisable(GL_BLEND); @@ -1534,9 +1534,9 @@ void NormalOpenGLGraphics::drawNet(const int x1, const int y1, void NormalOpenGLGraphics::bindTexture(const GLenum target, const GLuint texture) { - if (mLastImage != texture) + if (mTextureBinded != texture) { - mLastImage = texture; + mTextureBinded = texture; glBindTexture(target, texture); #ifdef DEBUG_BIND_TEXTURE mBinds ++; -- cgit v1.2.3-70-g09d2