]> git.tdb.fi Git - libs/gl.git/commitdiff
Use the correct form of glTexParameter to set maximum anisotropy
authorMikko Rasa <tdb@tdb.fi>
Fri, 28 Oct 2016 12:31:47 +0000 (15:31 +0300)
committerMikko Rasa <tdb@tdb.fi>
Fri, 28 Oct 2016 12:31:47 +0000 (15:31 +0300)
source/texture.cpp

index fe27a04d9ddd830fa93f21d51052ec0ffc0da8cd..4efa8ac998ad4ab80a3a6fa57a531b9d15422c18 100644 (file)
@@ -100,7 +100,7 @@ void Texture::update_parameter(int mask) const
        if(mask&MAG_FILTER)
                glTexParameteri(target, GL_TEXTURE_MAG_FILTER, mag_filter);
        if(mask&MAX_ANISOTROPY)
-               glTexParameteri(target, GL_TEXTURE_MAX_ANISOTROPY_EXT, max_anisotropy);
+               glTexParameterf(target, GL_TEXTURE_MAX_ANISOTROPY_EXT, max_anisotropy);
        if(mask&WRAP_S)
                glTexParameteri(target, GL_TEXTURE_WRAP_S, wrap_s);
        if(mask&WRAP_T)