diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-06-30 00:05:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-06-30 00:05:03 +0300 |
commit | 7e3170fa2b3f602428404e2f82fdb8c6640ea787 (patch) | |
tree | ec3cab5f60f1e746241dc37f66481be0b416d69c /src/openglgraphics.h | |
parent | 8448f1c4c07f49caa83a755e732918320e0e161f (diff) | |
download | manaverse-7e3170fa2b3f602428404e2f82fdb8c6640ea787.tar.gz manaverse-7e3170fa2b3f602428404e2f82fdb8c6640ea787.tar.bz2 manaverse-7e3170fa2b3f602428404e2f82fdb8c6640ea787.tar.xz manaverse-7e3170fa2b3f602428404e2f82fdb8c6640ea787.zip |
Extend bind texture debug logging.
Diffstat (limited to 'src/openglgraphics.h')
-rw-r--r-- | src/openglgraphics.h | 6 |
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 |