From f8343a270722699583d7cda768200a0b0097a3f5 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 8 Nov 2000 06:08:25 +0000 Subject: [PATCH] so long as you're using skydome, gl_sky_clip is now a usefull speadup. it just renders the sky as black (for now) --- source/gl_sky.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/source/gl_sky.c b/source/gl_sky.c index 4846031..18b3d21 100644 --- a/source/gl_sky.c +++ b/source/gl_sky.c @@ -286,6 +286,18 @@ R_DrawSkyBoxPoly (glpoly_t *poly) void R_DrawSkyDomePoly (glpoly_t *poly) { + int i; + + glDisable (GL_BLEND); + glDisable (GL_TEXTURE_2D); + glColor3f (0, 0, 0); + glBegin (GL_POLYGON); + for (i=0; inumverts; i++) { + glVertex3fv (poly->verts[i]); + } + glEnd (); + glEnable (GL_TEXTURE_2D); + glEnable (GL_BLEND); } void @@ -298,7 +310,11 @@ R_DrawSkyChain (msurface_t *sky_chain) } } else { while (sky_chain) { - R_DrawSkyDomePoly (sky_chain->polys); + glpoly_t *p = sky_chain->polys; + while (p) { + R_DrawSkyDomePoly (p); + p = p->next; + } sky_chain = sky_chain->texturechain; } }