summaryrefslogtreecommitdiff
path: root/src/openglgraphics.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-30 00:05:03 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-30 00:05:03 +0300
commit7e3170fa2b3f602428404e2f82fdb8c6640ea787 (patch)
treeec3cab5f60f1e746241dc37f66481be0b416d69c /src/openglgraphics.h
parent8448f1c4c07f49caa83a755e732918320e0e161f (diff)
downloadmv-7e3170fa2b3f602428404e2f82fdb8c6640ea787.tar.gz
mv-7e3170fa2b3f602428404e2f82fdb8c6640ea787.tar.bz2
mv-7e3170fa2b3f602428404e2f82fdb8c6640ea787.tar.xz
mv-7e3170fa2b3f602428404e2f82fdb8c6640ea787.zip
Extend bind texture debug logging.
Diffstat (limited to 'src/openglgraphics.h')
-rw-r--r--src/openglgraphics.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/openglgraphics.h b/src/openglgraphics.h
index e088fa4e2..eeb875a01 100644
--- a/src/openglgraphics.h
+++ b/src/openglgraphics.h
@@ -25,6 +25,7 @@
#ifdef USE_OPENGL
+#include "localconsts.h"
#include "main.h"
#include "graphics.h"
@@ -152,6 +153,8 @@ class OpenGLGraphics : public Graphics
void updateMemoryInfo();
+ void debugBindTexture(const Image *image);
+
private:
GLfloat *mFloatTexArray;
GLint *mIntTexArray;
@@ -161,6 +164,9 @@ class OpenGLGraphics : public Graphics
GLuint mFboId;
GLuint mTextureId;
GLuint mRboId;
+#ifdef DEBUG_BIND_TEXTURE
+ std::string mOldTexture;
+#endif
};
#endif