]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texture.cpp
Remove support for texture borders
[libs/gl.git] / source / texture.cpp
index dc69732fe2f33dafff253b51359898bbcaf1c260..52ad074281d30b945f0b2f328883f25ef06704da 100644 (file)
@@ -76,7 +76,7 @@ void Texture::update_parameter(int mask) const
                        glTexParameteri(target, GL_GENERATE_MIPMAP_SGIS, gen_mipmap);
                if(mask&COMPARE)
                        glTexParameteri(target, GL_TEXTURE_COMPARE_MODE, (compare ? GL_COMPARE_R_TO_TEXTURE : GL_NONE));
-               if(mask&cmp_func)
+               if(mask&COMPARE_FUNC)
                        glTexParameteri(target, GL_TEXTURE_COMPARE_FUNC, cmp_func);
        }
        else