From 89f730609198dac6a5cfad4befb9d63ac711623f Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 29 Aug 2000 05:22:58 +0000 Subject: [PATCH] turns out GL_WaterSurface wasn't binding the texture wasn't binding the surface taxter. very ugly --- source/gl_rsurf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/gl_rsurf.c b/source/gl_rsurf.c index 7f73256..7f9d738 100644 --- a/source/gl_rsurf.c +++ b/source/gl_rsurf.c @@ -599,11 +599,14 @@ dynamic: void GL_WaterSurface(msurface_t *s) { + int i; glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE); if (lighthalf) glColor4f(0.5,0.5,0.5, r_wateralpha->value); else glColor4f(1,1,1, r_wateralpha->value); + i = s->texinfo->texture->gl_texturenum; + glBindTexture (GL_TEXTURE_2D, i); if (r_wateralpha->value < 1.0) { glDepthMask(0);