summaryrefslogtreecommitdiff
path: root/indra/llrender/llrender.cpp
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2023-09-06 11:55:32 +0800
committerErik Kundiman <erik@megapahit.org>2023-09-06 11:55:32 +0800
commitddeca119875c89e42c41b55c77f317b7f6953a5a (patch)
tree5b6c409b8d5e2883ed50be5b0b89c4ccba23bedc /indra/llrender/llrender.cpp
parentec43470dff035b834ec797737f12d49bade19a6a (diff)
Preprocess anisotropy related code
Diffstat (limited to 'indra/llrender/llrender.cpp')
-rw-r--r--indra/llrender/llrender.cpp2
1 files changed, 2 insertions, 0 deletions
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)