From 7a6273c95a958a24ee0016e389a4173028604491 Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Fri, 17 Jul 2020 05:25:23 +0000 Subject: [PATCH] gl_rsurf: Don't cull geometry that leaves the view frustum with r_lockvisibility git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12832 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rsurf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gl_rsurf.c b/gl_rsurf.c index 45eb0c4b..ddff6769 100644 --- a/gl_rsurf.c +++ b/gl_rsurf.c @@ -428,7 +428,7 @@ static void R_View_WorldVisibility_CullSurfaces(void) surfacevisible = r_refdef.viewcache.world_surfacevisible; for (surfaceindex = surfaceindexstart; surfaceindex < surfaceindexend; surfaceindex++) { - if (surfacevisible[surfaceindex]) + if (surfacevisible[surfaceindex] && !r_lockvisibility.integer) { if (R_CullBox(surfaces[surfaceindex].mins, surfaces[surfaceindex].maxs) || (r_vis_trace_surfaces.integer && !R_CanSeeBox(r_vis_trace_samples.integer, r_vis_trace_eyejitter.value, r_vis_trace_enlarge.value, r_vis_trace_expand.value, r_vis_trace_pad.value, r_refdef.view.origin, surfaces[surfaceindex].mins, surfaces[surfaceindex].maxs))) -- 2.39.2