diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-07-02 21:11:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-07-02 21:11:48 +0300 |
commit | c5ba04d8c4f303ad621bfb295a37668bc1b3bb9c (patch) | |
tree | a10646b7e9d9279df8bf2d5af7fb23a7f7f47a3f /src/render/normalopenglgraphics.cpp | |
parent | f1f04f512d284d12bf2c59e212800d7c24de323e (diff) | |
download | manaverse-c5ba04d8c4f303ad621bfb295a37668bc1b3bb9c.tar.gz manaverse-c5ba04d8c4f303ad621bfb295a37668bc1b3bb9c.tar.bz2 manaverse-c5ba04d8c4f303ad621bfb295a37668bc1b3bb9c.tar.xz manaverse-c5ba04d8c4f303ad621bfb295a37668bc1b3bb9c.zip |
Rename some variables in renderers.
Diffstat (limited to 'src/render/normalopenglgraphics.cpp')
-rw-r--r-- | src/render/normalopenglgraphics.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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 ++; |