mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-02-16 16:41:30 +00:00
Possible fix for ATI multitexture (gl_texsort 0) wall rendering.
This commit is contained in:
parent
907be5bd58
commit
5ead0237ca
1 changed files with 3 additions and 0 deletions
|
@ -439,10 +439,12 @@ void R_DrawMultitexturePoly (msurface_t *s)
|
|||
|
||||
i = s->lightmaptexturenum;
|
||||
|
||||
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);
|
||||
glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE);
|
||||
glEnable(GL_TEXTURE_2D);
|
||||
// Binds lightmap to texenv 1
|
||||
qglSelectTexture (gl_mtex_enum+1);
|
||||
glBindTexture (GL_TEXTURE_2D, lightmap_textures + i);
|
||||
|
@ -476,6 +478,7 @@ dynamic:
|
|||
glEnd ();
|
||||
glDisable(GL_TEXTURE_2D);
|
||||
qglSelectTexture (gl_mtex_enum+0);
|
||||
glEnable(GL_TEXTURE_2D);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue