summaryrefslogtreecommitdiff
path: root/indra/llappearance/lltexlayerparams.cpp
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2023-09-06 16:25:16 +0800
committerErik Kundiman <erik@megapahit.org>2023-09-06 16:25:16 +0800
commit79510a184bcd529db8da2afc7c8c6327f07167ef (patch)
tree0b9aae85aa90b33c3c3d6af7808e2217413147e9 /indra/llappearance/lltexlayerparams.cpp
parent520fbfac5071f74d21e46b2f07dc0ed68b098903 (diff)
Preprocess appearance GL fixed-function features
so non implementors won't try to compile the code.
Diffstat (limited to 'indra/llappearance/lltexlayerparams.cpp')
-rw-r--r--indra/llappearance/lltexlayerparams.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/llappearance/lltexlayerparams.cpp b/indra/llappearance/lltexlayerparams.cpp
index a288c8955a..a6b0f54c88 100644
--- a/indra/llappearance/lltexlayerparams.cpp
+++ b/indra/llappearance/lltexlayerparams.cpp
@@ -344,7 +344,9 @@ BOOL LLTexLayerParamAlpha::render(S32 x, S32 y, S32 width, S32 height)
mCachedProcessedTexture->setAddressMode(LLTexUnit::TAM_CLAMP);
}
+#if GL_VERSION_1_1
LLGLSNoAlphaTest gls_no_alpha_test;
+#endif
gGL.getTexUnit(0)->bind(mCachedProcessedTexture);
gl_rect_2d_simple_tex(width, height);
gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE);
@@ -361,7 +363,9 @@ BOOL LLTexLayerParamAlpha::render(S32 x, S32 y, S32 width, S32 height)
}
else
{
+#if GL_VERSION_1_1
LLGLDisable no_alpha(GL_ALPHA_TEST);
+#endif
gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE);
gGL.color4f(0.f, 0.f, 0.f, effective_weight);
gl_rect_2d_simple(width, height);