From 5cf177294d7b42ef1b8569d2bd407cd2424e83b9 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 16 Sep 2000 08:50:12 +0000 Subject: [PATCH] forgot about multitexture for fullbrights --- source/gl_rsurf.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/gl_rsurf.c b/source/gl_rsurf.c index 270af3a..0acd9f6 100644 --- a/source/gl_rsurf.c +++ b/source/gl_rsurf.c @@ -436,6 +436,7 @@ void R_DrawMultitexturePoly (msurface_t *s) int maps; float *v; int i; + texture_t *texture = R_TextureAnimation (s->texinfo->texture); c_brush_polys++; @@ -444,7 +445,7 @@ void R_DrawMultitexturePoly (msurface_t *s) glColor3f(1,1,1); // Binds world to texture env 0 qglSelectTexture (gl_mtex_enum+0); - glBindTexture (GL_TEXTURE_2D, R_TextureAnimation (s->texinfo->texture)->gl_texturenum); + glBindTexture (GL_TEXTURE_2D, texture->gl_texturenum); glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE); glEnable(GL_TEXTURE_2D); // Binds lightmap to texenv 1 @@ -481,6 +482,11 @@ dynamic: glDisable(GL_TEXTURE_2D); qglSelectTexture (gl_mtex_enum+0); glEnable(GL_TEXTURE_2D); + + if (texture->gl_fb_texturenum>0) { + s->polys->fb_chain = fullbright_polys[texture->gl_fb_texturenum]; + fullbright_polys[texture->gl_fb_texturenum] = s->polys; + } } /*