Skip to content

Commit

Permalink
[rend2] Don't add portal views when there's no world to render
Browse files Browse the repository at this point in the history
  • Loading branch information
SomaZ committed May 1, 2024
1 parent c0ba7af commit 9ff929c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/rd-rend2/tr_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2582,7 +2582,7 @@ void R_SetupViewParms(const trRefdef_t *refdef)

qboolean R_AddPortalView(const trRefdef_t *refdef)
{
if (!tr.world)
if (!tr.world || refdef->rdflags & RDF_NOWORLDMODEL)
return qfalse;

for (int i = 0; i < tr.world->numWorldSurfaces; i++)
Expand Down

0 comments on commit 9ff929c

Please sign in to comment.