Fix inverted lightmap problem.

This commit is contained in:
Jeff Teunissen 2000-06-07 07:23:23 +00:00
parent 0b893de220
commit d7d581e546
2 changed files with 8 additions and 8 deletions

View file

@ -990,15 +990,15 @@ void R_SetupGL (void)
// set drawing parms
//
if (gl_cull->value)
glEnable(GL_CULL_FACE);
glEnable (GL_CULL_FACE);
else
glDisable(GL_CULL_FACE);
glDisable (GL_CULL_FACE);
glEnable(GL_BLEND);
glDisable(GL_ALPHA_TEST);
glAlphaFunc(GL_GREATER, 0.5);
glEnable(GL_DEPTH_TEST);
glShadeModel(GL_SMOOTH);
glEnable (GL_BLEND);
glDisable (GL_ALPHA_TEST);
glAlphaFunc (GL_GREATER, 0.5);
glEnable (GL_DEPTH_TEST);
glShadeModel (GL_SMOOTH);
}
/*

View file

@ -509,7 +509,7 @@ void R_DrawSequentialPoly (msurface_t *s)
theRect->h = 0;
theRect->w = 0;
}
glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_BLEND);
glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
glBegin (GL_TRIANGLE_FAN);
v = p->verts[0];
for (i=0 ; i<p->numverts ; i++, v+= VERTEXSIZE)