Skip to content

Commit

Permalink
Only use BoxTouchingVisibleLeafs when not using r_novis
Browse files Browse the repository at this point in the history
  • Loading branch information
hemebond committed Aug 11, 2024
1 parent 2f25af6 commit 439d0f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gl_rmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -4007,7 +4007,7 @@ static void R_View_UpdateEntityVisible (void)
if (!r_drawexteriormodel.integer)
renderimask |= RENDER_EXTERIORMODEL;
memset(r_refdef.viewcache.entityvisible, 0, r_refdef.scene.numentities);
if (r_refdef.scene.worldmodel && r_refdef.scene.worldmodel->brush.BoxTouchingVisibleLeafs)
if (r_refdef.scene.worldmodel && (!r_novis.integer && r_refdef.scene.worldmodel->brush.BoxTouchingVisibleLeafs))
{
// worldmodel can check visibility
for (i = 0;i < r_refdef.scene.numentities;i++)
Expand Down

0 comments on commit 439d0f1

Please sign in to comment.