File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -1254,7 +1254,7 @@ bool LLGLManager::initGL()
1254
1254
// there's some implementation that reports a crazy value
1255
1255
mMaxUniformBlockSize = llmin (mMaxUniformBlockSize , 65536 );
1256
1256
1257
- if (mGLVersion >= 4 . 59f )
1257
+ if (mHasAnisotropic )
1258
1258
{
1259
1259
glGetFloatv (GL_MAX_TEXTURE_MAX_ANISOTROPY, &mMaxAnisotropy );
1260
1260
}
@@ -1421,6 +1421,11 @@ void LLGLManager::initExtensions()
1421
1421
mHasCubeMapArray = mGLVersion >= 3 .99f ;
1422
1422
mHasTransformFeedback = mGLVersion >= 3 .99f ;
1423
1423
mHasDebugOutput = mGLVersion >= 4 .29f ;
1424
+ mHasAnisotropic = mGLVersion >= 4 .59f ;
1425
+ if (!mHasAnisotropic && gGLHExts .mSysExts )
1426
+ {
1427
+ mHasAnisotropic = ExtensionExists (" GL_EXT_texture_filter_anisotropic" , gGLHExts .mSysExts );
1428
+ }
1424
1429
1425
1430
#if LL_WINDOWS || LL_LINUX
1426
1431
if ( gGLHExts .mSysExts )
Original file line number Diff line number Diff line change @@ -517,7 +517,7 @@ void LLTexUnit::setTextureFilteringOption(LLTexUnit::eTextureFilterOptions optio
517
517
}
518
518
}
519
519
520
- if (gGLManager .mGLVersion >= 4 . 59f )
520
+ if (gGLManager .mHasAnisotropic )
521
521
{
522
522
if (LLImageGL::sGlobalUseAnisotropic && option == TFO_ANISOTROPIC)
523
523
{
You can’t perform that action at this time.
0 commit comments