summaryrefslogtreecommitdiff
path: root/indra/llrender/llvertexbuffer.cpp
diff options
context:
space:
mode:
authorGeenz Linden <geenz@lindenlab.com>2022-10-06 15:18:17 -0400
committerGeenz Linden <geenz@lindenlab.com>2022-10-06 15:18:17 -0400
commitdb92f9564992b9910b21f3de57a584ccfa199e75 (patch)
tree04dc727d9b536761042f1d968b36bb07d220f13b /indra/llrender/llvertexbuffer.cpp
parentbe1cdc1aaa67eca71fee8cbbc16b4c85bcbdb258 (diff)
Switch away from std::string
API expects const char* anyways.
Diffstat (limited to 'indra/llrender/llvertexbuffer.cpp')
-rw-r--r--indra/llrender/llvertexbuffer.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/llrender/llvertexbuffer.cpp b/indra/llrender/llvertexbuffer.cpp
index 4ce04c17f6..33dcd6c563 100644
--- a/indra/llrender/llvertexbuffer.cpp
+++ b/indra/llrender/llvertexbuffer.cpp
@@ -574,9 +574,11 @@ void LLVertexBuffer::validateRange(U32 start, U32 end, U32 count, U32 indices_of
}
}
-void LLVertexBuffer::setLabel(std::string label) {
- LL_LABEL_OBJECT_GL(GL_BUFFER, mGLBuffer, label.length(), label.c_str());
+#ifdef LL_PROFILER_ENABLE_TRACY_OPENGL
+void LLVertexBuffer::setLabel(const char* label) {
+ LL_LABEL_OBJECT_GL(GL_BUFFER, mGLBuffer, strlen(label), label);
}
+#endif
void LLVertexBuffer::drawRange(U32 mode, U32 start, U32 end, U32 count, U32 indices_offset) const
{