Minor world rendering fixes.

This commit is contained in:
Forest Hale 2000-07-04 04:19:06 +00:00
parent f6006e7cef
commit 225cbaff0d

View file

@ -651,7 +651,9 @@ void R_BlendLightmaps (void)
glDepthMask (0); // don't bother writing Z glDepthMask (0); // don't bother writing Z
glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
glBlendFunc (GL_ZERO, GL_SRC_COLOR); glBlendFunc (GL_ZERO, GL_SRC_COLOR);
glEnable(GL_BLEND);
for (i=0 ; i<MAX_LIGHTMAPS ; i++) for (i=0 ; i<MAX_LIGHTMAPS ; i++)
{ {
@ -1045,6 +1047,7 @@ void R_DrawBrushModel (entity_t *e)
} }
} }
glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
R_BlendLightmaps (); R_BlendLightmaps ();
glPopMatrix (); glPopMatrix ();
@ -1201,6 +1204,7 @@ void R_DrawWorld (void)
DrawTextureChains (); DrawTextureChains ();
R_BlendLightmaps (); R_BlendLightmaps ();
glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
} }