From 7e3170fa2b3f602428404e2f82fdb8c6640ea787 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 30 Jun 2012 00:05:03 +0300 Subject: Extend bind texture debug logging. --- src/openglgraphics.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/openglgraphics.h') 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 -- cgit v1.2.3-60-g2f50