summaryrefslogtreecommitdiff
path: root/indra/llrender
diff options
context:
space:
mode:
authorCosmic Linden <cosmic@lindenlab.com>2024-10-03 16:43:04 -0700
committerCosmic Linden <cosmic@lindenlab.com>2024-10-03 16:43:04 -0700
commit322b4fb9c4c37787bd219dd97012f121309d591a (patch)
tree0091338c20e5138c7e8da9389a2701a49eab6efc /indra/llrender
parentdc7b2adbebea2bd332de52d90dbbe651ee94031c (diff)
secondlife/viewer#2472: Feedback
Disable if not supported for OpenGL version Minimize performance footguns Simplify for clause
Diffstat (limited to 'indra/llrender')
-rw-r--r--indra/llrender/llgltexture.cpp9
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)
{