diff options
author | Geenz Linden <geenz@lindenlab.com> | 2022-10-06 15:18:17 -0400 |
---|---|---|
committer | Geenz Linden <geenz@lindenlab.com> | 2022-10-06 15:18:17 -0400 |
commit | db92f9564992b9910b21f3de57a584ccfa199e75 (patch) | |
tree | 04dc727d9b536761042f1d968b36bb07d220f13b /indra/llrender/llglslshader.cpp | |
parent | be1cdc1aaa67eca71fee8cbbc16b4c85bcbdb258 (diff) |
Switch away from std::string
API expects const char* anyways.
Diffstat (limited to 'indra/llrender/llglslshader.cpp')
-rw-r--r-- | indra/llrender/llglslshader.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/llrender/llglslshader.cpp b/indra/llrender/llglslshader.cpp index f424a01541..27de7070ff 100644 --- a/indra/llrender/llglslshader.cpp +++ b/indra/llrender/llglslshader.cpp @@ -505,7 +505,7 @@ BOOL LLGLSLShader::createShader(std::vector<LLStaticHashedString> * attributes, } #ifdef LL_PROFILER_ENABLE_TRACY_OPENGL - setLabel(mName); + setLabel(mName.c_str()); #endif return success; @@ -1792,8 +1792,8 @@ void LLShaderUniforms::apply(LLGLSLShader* shader) } #ifdef LL_PROFILER_ENABLE_TRACY_OPENGL -void LLGLSLShader::setLabel(std::string label) { - LL_LABEL_OBJECT_GL(GL_PROGRAM, mProgramObject, label.length(), label.c_str()); +void LLGLSLShader::setLabel(const char* label) { + LL_LABEL_OBJECT_GL(GL_PROGRAM, mProgramObject, strlen(label), label); } #endif |