From 2395defccd525e8861c6a2a5882f3852e85fab41 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Sat, 2 Jun 2018 05:21:50 -0400 Subject: [PATCH] - make GL version of line distance culling use a separate CVAR, which, for now, is turned off. --- src/hwrenderer/scene/hw_bsp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hwrenderer/scene/hw_bsp.cpp b/src/hwrenderer/scene/hw_bsp.cpp index 8f561c289..1c7041d46 100644 --- a/src/hwrenderer/scene/hw_bsp.cpp +++ b/src/hwrenderer/scene/hw_bsp.cpp @@ -75,11 +75,11 @@ void HWDrawInfo::UnclipSubsector(subsector_t *sub) // //========================================================================== -EXTERN_CVAR(Float, r_line_distance_cull) +CVAR(Float, gl_line_distance_cull, 0.0, 0 /*CVAR_ARCHIVE|CVAR_GLOBALCONFIG*/) // this is deactivated, for now inline bool IsDistanceCulled(seg_t *line) { - double dist3 = r_line_distance_cull * r_line_distance_cull; + double dist3 = gl_line_distance_cull * gl_line_distance_cull; if (dist3 <= 0.0) return false;