From e2190913766b1c6c1abc65bb0edb5f2dabbfc398 Mon Sep 17 00:00:00 2001 From: lordhavoc Date: Mon, 16 Oct 2000 22:11:37 +0000 Subject: [PATCH] fix for transpolys disappearing while turning git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@54 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rmain.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gl_rmain.c b/gl_rmain.c index 4e0c6e2e..f7d2e004 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -1582,10 +1582,6 @@ void R_RenderView (void) lighthalf = gl_lightmode.value; FOG_framebegin(); - skypolyclear(); - wallpolyclear(); - transpolyclear(); - skyisvisible = false; // if (r_speeds2.value) // { @@ -1600,6 +1596,12 @@ void R_RenderView (void) R_SetupFrame (); R_SetFrustum (); R_SetupGL (); + + skypolyclear(); + wallpolyclear(); + transpolyclear(); + skyisvisible = false; + R_MarkLeaves (); // done here so we know if we're in water R_DrawWorld (); // adds static entities to the list if (!intimerefresh) -- 2.39.2