Minor bit of cleanup. Also now using glTexGenf instead of glTexGeni for fixed-function water texcoords.

This commit is contained in:
Shyotl
2013-02-25 13:02:22 -06:00
parent e187e642c0
commit d27b329afb
4 changed files with 2 additions and 5 deletions

View File

@@ -414,8 +414,8 @@ void LLDrawPoolWater::renderOpaqueLegacyWater()
{
glEnable(GL_TEXTURE_GEN_S); //texture unit 0
glEnable(GL_TEXTURE_GEN_T); //texture unit 0
glTexGeni(GL_S, GL_TEXTURE_GEN_MODE, GL_OBJECT_LINEAR);
glTexGeni(GL_T, GL_TEXTURE_GEN_MODE, GL_OBJECT_LINEAR);
glTexGenf(GL_S, GL_TEXTURE_GEN_MODE, GL_OBJECT_LINEAR);
glTexGenf(GL_T, GL_TEXTURE_GEN_MODE, GL_OBJECT_LINEAR);
}
// Use the fact that we know all water faces are the same size