mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 23:12:24 +00:00
- reinstate drawcall timing.
This commit is contained in:
parent
ce3653f6e1
commit
150135a07d
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue