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