From 3ca44c425387f828b5389b1400faee21ecddfa94 Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Fri, 17 Jul 2020 13:59:34 +0000 Subject: [PATCH] gl_rmain: Don't set frustum when r_lockvisibility or r_lockpvs are 1 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12834 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rmain.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gl_rmain.c b/gl_rmain.c index e8a81560..9da48883 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -4295,12 +4295,16 @@ void R_HDR_UpdateIrisAdaptation(const vec3_t point) Cvar_SetValueQuick(&r_hdr_irisadaptation_value, 1.0f); } +extern cvar_t r_lockvisibility; +extern cvar_t r_lockpvs; + static void R_View_SetFrustum(const int *scissor) { int i; double fpx = +1, fnx = -1, fpy = +1, fny = -1; vec3_t forward, left, up, origin, v; - + if(r_lockvisibility.integer || r_lockpvs.integer) + return; if(scissor) { // flipped x coordinates (because x points left here) -- 2.39.2