From 929c658fcaf5f8d9ffce1cafc9e52d62788841e4 Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Sun, 10 Sep 2023 11:48:38 +0800 Subject: GL_ALPHA8_EXT as an alternative to GL_ALPHA8 --- indra/newview/llvoavatar.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'indra/newview/llvoavatar.cpp') diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index 4a53f2b2cd..348442cf18 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -9765,7 +9765,11 @@ void LLVOAvatar::onBakedTextureMasksLoaded( BOOL success, LLViewerFetchedTexture stop_glerror(); LLImageGL::setManualImage( +#if GL_VERSION_1_1 GL_TEXTURE_2D, 0, GL_ALPHA8, +#else + GL_TEXTURE_2D, 0, GL_ALPHA8_EXT, +#endif aux_src->getWidth(), aux_src->getHeight(), GL_ALPHA, GL_UNSIGNED_BYTE, aux_src->getData()); stop_glerror(); -- cgit v1.3