summaryrefslogtreecommitdiff
path: root/indra/newview/llhudnametag.cpp
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2023-09-10 10:17:43 +0800
committerErik Kundiman <erik@megapahit.org>2023-09-10 10:17:43 +0800
commit040fe22d93fe67a73fc33493057f06f07371dbdd (patch)
treea392cc84a82826652a0d92a005bc5aaf48dabc86 /indra/newview/llhudnametag.cpp
parente67022465d8189eb30135b6b7c0fe477b3b91819 (diff)
Preprocess non portable OpenGL code
Diffstat (limited to 'indra/newview/llhudnametag.cpp')
-rw-r--r--indra/newview/llhudnametag.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/llhudnametag.cpp b/indra/newview/llhudnametag.cpp
index ab6a64157c..d75d341c69 100644
--- a/indra/newview/llhudnametag.cpp
+++ b/indra/newview/llhudnametag.cpp
@@ -258,7 +258,9 @@ void LLHUDNameTag::renderText(BOOL for_select)
}
LLGLState gls_blend(GL_BLEND, for_select ? FALSE : TRUE);
+#if GL_VERSION_1_1
LLGLState gls_alpha(GL_ALPHA_TEST, for_select ? FALSE : TRUE);
+#endif
LLColor4 shadow_color(0.f, 0.f, 0.f, 1.f);
F32 alpha_factor = 1.f;