mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-10 14:20:38 +00:00
oh, just a 4 x speedup for q1dm17 wih gl_sky_clip 1 and gl_sky_divide 1 :)
This commit is contained in:
parent
3a2389c3dc
commit
3b6f18d1af
1 changed files with 5 additions and 5 deletions
|
@ -647,16 +647,11 @@ R_DrawSkyDomePoly (glpoly_t *poly)
|
|||
{
|
||||
int i;
|
||||
|
||||
glDisable (GL_BLEND);
|
||||
glDisable (GL_TEXTURE_2D);
|
||||
glColor3f (0, 0, 0);
|
||||
glBegin (GL_POLYGON);
|
||||
for (i = 0; i < poly->numverts; i++) {
|
||||
glVertex3fv (poly->verts[i]);
|
||||
}
|
||||
glEnd ();
|
||||
glEnable (GL_TEXTURE_2D);
|
||||
glEnable (GL_BLEND);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -679,6 +674,9 @@ R_DrawSkyChain (msurface_t *sky_chain)
|
|||
}
|
||||
glDepthRange (gldepthmin, gldepthmax);
|
||||
} else {
|
||||
glDisable (GL_BLEND);
|
||||
glDisable (GL_TEXTURE_2D);
|
||||
glColor3f (0, 0, 0);
|
||||
while (sc) {
|
||||
glpoly_t *p = sc->polys;
|
||||
|
||||
|
@ -688,6 +686,8 @@ R_DrawSkyChain (msurface_t *sky_chain)
|
|||
}
|
||||
sc = sc->texturechain;
|
||||
}
|
||||
glEnable (GL_TEXTURE_2D);
|
||||
glEnable (GL_BLEND);
|
||||
}
|
||||
#if 0
|
||||
// seems to work, but this is the wrong place to do it.
|
||||
|
|
Loading…
Reference in a new issue