summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorRunitai Linden <davep@lindenlab.com>2021-12-06 17:02:41 -0600
committerRunitai Linden <davep@lindenlab.com>2021-12-06 17:02:41 -0600
commit72cd3ffde708d6434bd45a35d3934584a101cc40 (patch)
tree9cd5cbd2258bed129469b675f050ea9249245a89 /indra
parent958df7398b6c4405aa053f4681ad5417197deed8 (diff)
SL-16447 Fix for broken benchmark.
Diffstat (limited to 'indra')
-rw-r--r--indra/llrender/llvertexbuffer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/llrender/llvertexbuffer.cpp b/indra/llrender/llvertexbuffer.cpp
index dcce5a5a1d..9926447ef8 100644
--- a/indra/llrender/llvertexbuffer.cpp
+++ b/indra/llrender/llvertexbuffer.cpp
@@ -734,10 +734,12 @@ void LLVertexBuffer::drawArrays(U32 mode, U32 first, U32 count) const
}
#endif
+ LLGLSLShader::startProfile();
{
LL_PROFILER_GPU_ZONEC("gl.DrawArrays", 0xFF4040)
glDrawArrays(sGLMode[mode], first, count);
}
+ LLGLSLShader::stopProfile(count, mode);
stop_glerror();
placeFence();