summaryrefslogtreecommitdiff
path: root/indra/llrender
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2021-06-01 20:13:13 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2021-11-12 17:21:50 +0200
commit5534781acf4a656478c27d5b94991e98bd876413 (patch)
tree857198a6e2ad1ec8c5cf0b121cf5a42c31c9e595 /indra/llrender
parent28cefb3a37f8b6a626b963c8264bc24fdb47c096 (diff)
SL-15333 Crash in glh_init_extensions
Diffstat (limited to 'indra/llrender')
-rw-r--r--indra/llrender/llgl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llrender/llgl.cpp b/indra/llrender/llgl.cpp
index 4f9aa5f979..c7f85aec21 100644
--- a/indra/llrender/llgl.cpp
+++ b/indra/llrender/llgl.cpp
@@ -557,7 +557,7 @@ bool LLGLManager::initGL()
glGetIntegerv(GL_NUM_EXTENSIONS, &count);
for (GLint i = 0; i < count; ++i)
{
- std::string ext((const char*) glGetStringi(GL_EXTENSIONS, i));
+ std::string ext = ll_safe_string((const char*) glGetStringi(GL_EXTENSIONS, i));
str << ext << " ";
LL_DEBUGS("GLExtensions") << ext << LL_ENDL;
}