From ddeca119875c89e42c41b55c77f317b7f6953a5a Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Wed, 6 Sep 2023 11:55:32 +0800 Subject: Preprocess anisotropy related code --- indra/llrender/llrender.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/indra/llrender/llrender.cpp b/indra/llrender/llrender.cpp index f34161980a..89de6b93ea 100644 --- a/indra/llrender/llrender.cpp +++ b/indra/llrender/llrender.cpp @@ -519,6 +519,7 @@ void LLTexUnit::setTextureFilteringOption(LLTexUnit::eTextureFilterOptions optio } } +#if GL_EXT_texture_filter_anisotropic if (gGLManager.mHasAnisotropic) { if (LLImageGL::sGlobalUseAnisotropic && option == TFO_ANISOTROPIC) @@ -537,6 +538,7 @@ void LLTexUnit::setTextureFilteringOption(LLTexUnit::eTextureFilterOptions optio glTexParameterf(sGLTextureType[mCurrTexType], GL_TEXTURE_MAX_ANISOTROPY_EXT, 1.f); } } +#endif } GLint LLTexUnit::getTextureSource(eTextureBlendSrc src) -- cgit v1.2.3