summaryrefslogtreecommitdiff
path: root/src/render/safeopenglgraphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-02 21:11:48 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-02 21:11:48 +0300
commitc5ba04d8c4f303ad621bfb295a37668bc1b3bb9c (patch)
treea10646b7e9d9279df8bf2d5af7fb23a7f7f47a3f /src/render/safeopenglgraphics.cpp
parentf1f04f512d284d12bf2c59e212800d7c24de323e (diff)
downloadmv-c5ba04d8c4f303ad621bfb295a37668bc1b3bb9c.tar.gz
mv-c5ba04d8c4f303ad621bfb295a37668bc1b3bb9c.tar.bz2
mv-c5ba04d8c4f303ad621bfb295a37668bc1b3bb9c.tar.xz
mv-c5ba04d8c4f303ad621bfb295a37668bc1b3bb9c.zip
Rename some variables in renderers.
Diffstat (limited to 'src/render/safeopenglgraphics.cpp')
-rw-r--r--src/render/safeopenglgraphics.cpp8
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);
}
}