From 05f66b4c660c03d16c5ba39cfddc311db3cd8b42 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 13 Nov 2000 19:38:56 +0000 Subject: [PATCH] ok, this should fix the skybox edges --- source/gl_sky.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/gl_sky.c b/source/gl_sky.c index 180e636..9dce5f2 100644 --- a/source/gl_sky.c +++ b/source/gl_sky.c @@ -541,13 +541,15 @@ R_DrawSkyChain (msurface_t *sky_chain) int i,j; glColor3f (1, 0, 0); for (i=0; i<6; i++) { + vec3_t v; glBegin (GL_LINES); for (j=0; j<4; j++) { - vec3_t v; memcpy (v, &skyvec[i][j][2], sizeof(v)); VectorAdd (v, r_refdef.vieworg, v); glVertex3fv (v); } + memcpy (v, &skyvec[i][j][2], sizeof(v)); + VectorAdd (v, r_refdef.vieworg, v); glVertex3fv (&skyvec[i][0][2]); glEnd (); }