summaryrefslogtreecommitdiff
path: root/indra/llrender/llrender.cpp
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2023-09-11 13:53:15 +0800
committerErik Kundiman <erik@megapahit.org>2023-09-11 13:53:15 +0800
commita26946b3dd9962a0d0205de6a26d5322fc38546c (patch)
treea3d84fdcbe52c6926c2f83f0bf4d9804feeae066 /indra/llrender/llrender.cpp
parent90b837f670441311623cc8ed05c54e5d3e22b19a (diff)
Use more portable GL_TEXTURE_MAX_ANISOTROPY_EXT
Diffstat (limited to 'indra/llrender/llrender.cpp')
-rw-r--r--indra/llrender/llrender.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/indra/llrender/llrender.cpp b/indra/llrender/llrender.cpp
index c4a1c2f5d2..aaf0b70ad9 100644
--- a/indra/llrender/llrender.cpp
+++ b/indra/llrender/llrender.cpp
@@ -524,19 +524,17 @@ void LLTexUnit::setTextureFilteringOption(LLTexUnit::eTextureFilterOptions optio
}
}
-#if GL_EXT_texture_filter_anisotropic
if (gGLManager.mGLVersion >= 4.59f)
{
if (LLImageGL::sGlobalUseAnisotropic && option == TFO_ANISOTROPIC)
{
- glTexParameterf(sGLTextureType[mCurrTexType], GL_TEXTURE_MAX_ANISOTROPY, gGLManager.mMaxAnisotropy);
+ glTexParameterf(sGLTextureType[mCurrTexType], GL_TEXTURE_MAX_ANISOTROPY_EXT, gGLManager.mMaxAnisotropy);
}
else
{
- glTexParameterf(sGLTextureType[mCurrTexType], GL_TEXTURE_MAX_ANISOTROPY, 1.f);
+ glTexParameterf(sGLTextureType[mCurrTexType], GL_TEXTURE_MAX_ANISOTROPY_EXT, 1.f);
}
}
-#endif
}
GLint LLTexUnit::getTextureSource(eTextureBlendSrc src)