diff options
author | Cosmic Linden <cosmic@lindenlab.com> | 2024-10-03 16:43:04 -0700 |
---|---|---|
committer | Cosmic Linden <cosmic@lindenlab.com> | 2024-10-03 16:43:04 -0700 |
commit | 322b4fb9c4c37787bd219dd97012f121309d591a (patch) | |
tree | 0091338c20e5138c7e8da9389a2701a49eab6efc /indra/llrender/llgltexture.cpp | |
parent | dc7b2adbebea2bd332de52d90dbbe651ee94031c (diff) |
secondlife/viewer#2472: Feedback
Disable if not supported for OpenGL version
Minimize performance footguns
Simplify for clause
Diffstat (limited to 'indra/llrender/llgltexture.cpp')
-rw-r--r-- | indra/llrender/llgltexture.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/llrender/llgltexture.cpp b/indra/llrender/llgltexture.cpp index 9a2b2ef524..bb4205b319 100644 --- a/indra/llrender/llgltexture.cpp +++ b/indra/llrender/llgltexture.cpp @@ -170,6 +170,13 @@ bool LLGLTexture::createGLTexture(S32 discard_level, const LLImageRaw* imageraw, void LLGLTexture::getGLObjectLabel(std::string& label, bool& error) const { + // GL_VERSION_4_3 + if (gGLManager.mGLVersion < 4.29f) + { + error = true; + label.clear(); + return; + } if (!mGLTexturep) { error = true; @@ -194,6 +201,8 @@ void LLGLTexture::getGLObjectLabel(std::string& label, bool& error) const std::string LLGLTexture::setGLObjectLabel(const std::string& prefix, bool append_texname) const { + if (gGLManager.mGLVersion < 4.29f) { return ""; } // GL_VERSION_4_3 + llassert(mGLTexturep); if (mGLTexturep) { |