- make GL version of line distance culling use a separate CVAR, which, for now, is turned off.

This commit is contained in:
Rachael Alexanderson 2018-06-02 05:21:50 -04:00 committed by drfrag
parent 373870787f
commit 47c51f437e

View file

@ -77,11 +77,11 @@ void GLSceneDrawer::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;