From 6637f4af57cd60008388bfefda1c37376c9d7042 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 20 Nov 2012 13:29:10 +0300 Subject: Add debug option to show draw calls per frame. Also fix map draw and text in debug window with mobile OpenGL. --- src/graphics.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/graphics.h') diff --git a/src/graphics.h b/src/graphics.h index d538ef7af..6ef38350a 100644 --- a/src/graphics.h +++ b/src/graphics.h @@ -321,6 +321,10 @@ class Graphics : public gcn::SDLGraphics virtual void initArrays() { } +#ifdef DEBUG_DRAW_CALLS + virtual unsigned int getDrawCalls() const + { return 0; } +#endif int mWidth; int mHeight; -- cgit v1.2.3-60-g2f50