summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2023-09-06 17:06:54 +0800
committerErik Kundiman <erik@megapahit.org>2023-09-06 17:06:54 +0800
commit4ff7678deb6832d39f3d7e1612ee6cf1ae24a76f (patch)
tree70fa3a6dc19aa6bf346b19216325426b3683c5e2
parent79510a184bcd529db8da2afc7c8c6327f07167ef (diff)
GL_ALPHA8_EXT as an alternative to GL_ALPHA8
-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 a6b0f54c88..ec02d0d7fc 100644
--- a/indra/llappearance/lltexlayerparams.cpp
+++ b/indra/llappearance/lltexlayerparams.cpp
@@ -321,7 +321,11 @@ BOOL LLTexLayerParamAlpha::render(S32 x, S32 y, S32 width, S32 height)
// We now have something in one of our caches
LLTexLayerSet::sHasCaches |= mCachedProcessedTexture ? TRUE : FALSE;
+#if GL_VERSION_1_1
mCachedProcessedTexture->setExplicitFormat(GL_ALPHA8, GL_ALPHA);
+#else
+ mCachedProcessedTexture->setExplicitFormat(GL_ALPHA8_EXT, GL_ALPHA);
+#endif
}
// Applies domain and effective weight to data as it is decoded. Also resizes the raw image if needed.