summaryrefslogtreecommitdiff
path: root/src/openglgraphics.h
diff options
context:
space:
mode:
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