mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-01-21 07:30:55 +00:00
Fix inverted lightmap problem.
This commit is contained in:
parent
0b893de220
commit
d7d581e546
2 changed files with 8 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue