summaryrefslogtreecommitdiff
path: root/src/normalopenglgraphics.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-14 16:35:57 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-14 16:35:57 +0300
commit750d3348b363716cf82136c337dac5da06bf5390 (patch)
tree29aed9c17d6121f77f9a48a0c570954d79a5aa81 /src/normalopenglgraphics.h
parent595cd8cf3c1013f2ae20b118655f667a6c24c452 (diff)
downloadmanaverse-750d3348b363716cf82136c337dac5da06bf5390.tar.gz
manaverse-750d3348b363716cf82136c337dac5da06bf5390.tar.bz2
manaverse-750d3348b363716cf82136c337dac5da06bf5390.tar.xz
manaverse-750d3348b363716cf82136c337dac5da06bf5390.zip
add into texture bind dubugging also bind count.
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;
};