diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp
index c4fe86b4900450f33d98617f21ed1bd47f2e3f6d..f969d5196f19552b34d671dca6fa84109c70dde3 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@ -787,8 +787,13 @@ void RasterizerOpenGL::SamplerInfo::SyncWithConfig(const Tegra::Texture::FullTex
         }
     }
     if (info.tic.use_header_opt_control == 0) {
-        glSamplerParameterf(s, GL_TEXTURE_MAX_ANISOTROPY_EXT,
-                            static_cast<float>(1 << info.tic.max_anisotropy.Value()));
+        if (GLAD_GL_ARB_texture_filter_anisotropic) {
+            glSamplerParameterf(s, GL_TEXTURE_MAX_ANISOTROPY,
+                                static_cast<float>(1 << info.tic.max_anisotropy.Value()));
+        } else if (GLAD_GL_EXT_texture_filter_anisotropic) {
+            glSamplerParameterf(s, GL_TEXTURE_MAX_ANISOTROPY_EXT,
+                                static_cast<float>(1 << info.tic.max_anisotropy.Value()));
+        }
         glSamplerParameterf(s, GL_TEXTURE_MIN_LOD,
                             static_cast<float>(info.tic.res_min_mip_level.Value()));
         glSamplerParameterf(s, GL_TEXTURE_MAX_LOD,