Add function call counting to debug infrastructure

This commit is contained in:
2016-07-09 20:59:54 +10:00
parent 1f364f7024
commit 54ecddad2f
4 changed files with 26 additions and 0 deletions
+2
View File
@@ -1,6 +1,7 @@
#include "Dengine/Platform.h"
#include "Dengine/OpenGL.h"
#include "Dengine/Renderer.h"
#include "Dengine/Debug.h"
#define RENDER_BOUNDING_BOX FALSE
@@ -140,6 +141,7 @@ void renderer_object(Renderer *renderer, v2 pos, v2 size, f32 rotate, v4 color,
glDrawArrays(GL_TRIANGLE_STRIP, 0, renderer->numVertexesInVbo);
#ifdef DENGINE_DEBUG
debug_callCountIncrement(debugcallcount_drawArrays);
#endif
glBindVertexArray(0);