From: cloudwalk Date: Fri, 17 Jul 2020 13:59:34 +0000 (+0000) Subject: gl_rmain: Don't set frustum when r_lockvisibility or r_lockpvs are 1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3ca44c425387f828b5389b1400faee21ecddfa94;p=xonotic%2Fdarkplaces.git 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 --- 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)