Skip to content

Commit

Permalink
[rend2] Fix viewport when RDF_NOWORLDMODEL
Browse files Browse the repository at this point in the history
  • Loading branch information
SomaZ committed Oct 9, 2023
1 parent 30ab592 commit 65b189c
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 @@ -2499,7 +2499,7 @@ void R_SetupViewParms(const trRefdef_t *refdef)
tr.viewParms.viewportX = refdef->x;

// Shoud be just refef->y but this flips the menu orientation for models, so its actually needed like this
if (!tr.world)
if (!tr.world || refdef->rdflags & RDF_NOWORLDMODEL)
tr.viewParms.viewportY = glConfig.vidHeight - (refdef->y + refdef->height);
else
tr.viewParms.viewportY = refdef->y;
Expand Down

0 comments on commit 65b189c

Please sign in to comment.