summaryrefslogtreecommitdiff
path: root/src/normalopenglgraphics.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/normalopenglgraphics.h')
-rw-r--r--src/normalopenglgraphics.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/normalopenglgraphics.h b/src/normalopenglgraphics.h
index 86a380ac8..40a01cd9e 100644
--- a/src/normalopenglgraphics.h
+++ b/src/normalopenglgraphics.h
@@ -195,7 +195,10 @@ class NormalOpenGLGraphics final : public Graphics
static unsigned int mLastDrawCalls;
#endif
-
+#ifdef DEBUG_BIND_TEXTURE
+ virtual unsigned int getBinds() const
+ { return mLastBinds; }
+#endif
static void bindTexture(const GLenum target, const GLuint texture);
static GLuint mLastImage;
@@ -231,7 +234,9 @@ class NormalOpenGLGraphics final : public Graphics
bool mColorAlpha;
#ifdef DEBUG_BIND_TEXTURE
std::string mOldTexture;
- unsigned mOldTextureId;
+ unsigned int mOldTextureId;
+ static unsigned int mBinds;
+ static unsigned int mLastBinds;
#endif
FBOInfo mFbo;
};