- reinstate drawcall timing.

This commit is contained in:
Christoph Oelckers 2014-07-13 23:14:28 +02:00
parent ce3653f6e1
commit 150135a07d

View file

@ -80,7 +80,7 @@ public:
#ifdef __GL_PCH_H // we need the system includes for this but we cannot include them ourselves without creating #define clashes. The affected files wouldn't try to draw anyway. #ifdef __GL_PCH_H // we need the system includes for this but we cannot include them ourselves without creating #define clashes. The affected files wouldn't try to draw anyway.
void RenderArray(unsigned int primtype, unsigned int offset, unsigned int count) void RenderArray(unsigned int primtype, unsigned int offset, unsigned int count)
{ {
//drawcalls.Clock(); drawcalls.Clock();
if (gl.flags & RFL_BUFFER_STORAGE) if (gl.flags & RFL_BUFFER_STORAGE)
{ {
glDrawArrays(primtype, offset, count); glDrawArrays(primtype, offset, count);
@ -89,7 +89,7 @@ public:
{ {
ImmRenderBuffer(primtype, offset, count); ImmRenderBuffer(primtype, offset, count);
} }
//drawcalls.Unclock(); drawcalls.Unclock();
} }
void RenderCurrent(FFlatVertex *newptr, unsigned int primtype, unsigned int *poffset = NULL, unsigned int *pcount = NULL) void RenderCurrent(FFlatVertex *newptr, unsigned int primtype, unsigned int *poffset = NULL, unsigned int *pcount = NULL)