From 750d3348b363716cf82136c337dac5da06bf5390 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 14 May 2013 16:35:57 +0300 Subject: add into texture bind dubugging also bind count. --- src/normalopenglgraphics.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/normalopenglgraphics.h') 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; }; -- cgit v1.2.3-60-g2f50