From 4ff7678deb6832d39f3d7e1612ee6cf1ae24a76f Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Wed, 6 Sep 2023 17:06:54 +0800 Subject: GL_ALPHA8_EXT as an alternative to GL_ALPHA8 --- indra/llappearance/lltexlayerparams.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'indra/llappearance') 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. -- cgit v1.2.3