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, 9 insertions, 0 deletions
diff --git a/src/normalopenglgraphics.h b/src/normalopenglgraphics.h
index 4c9d9e417..5894aa957 100644
--- a/src/normalopenglgraphics.h
+++ b/src/normalopenglgraphics.h
@@ -163,6 +163,15 @@ class NormalOpenGLGraphics final : public Graphics
void updateTextureFormat();
+#ifdef DEBUG_DRAW_CALLS
+ virtual unsigned int getDrawCalls() const
+ { return mLastDrawCalls; }
+
+ static unsigned int mDrawCalls;
+
+ static unsigned int mLastDrawCalls;
+#endif
+
static void bindTexture(GLenum target, GLuint texture);
static GLuint mLastImage;