]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_textures.c
Tomaz fixed Image_CopyMux
[xonotic/darkplaces.git] / gl_textures.c
index 0b03b0a4d020718dadec181f151cd255f3930e9f..bb90b83c89d94b48675e922acb76d0d2ecde1a02 100644 (file)
@@ -572,7 +572,7 @@ static void GL_SetupTextureParameters(int flags, int texturetype)
 
        if (gl_support_anisotropy)
        {
-               int aniso = bound(1, gl_texture_anisotropy.integer, 128);
+               int aniso = bound(1, gl_texture_anisotropy.integer, gl_max_anisotropy);
                if (gl_texture_anisotropy.integer != aniso)
                        Cvar_SetValueQuick(&gl_texture_anisotropy, aniso);
                qglTexParameteri(textureenum, GL_TEXTURE_MAX_ANISOTROPY_EXT, aniso);CHECKGLERROR