OpenGL2: Don't draw viewmodels in portal views.

Thanks Cyrax for pointing out, should fix https://bugzilla.icculus.org/show_bug.cgi?id=6363.
This commit is contained in:
SmileTheory 2016-11-25 01:30:21 -08:00
parent 2349ef038e
commit 93066d2e05

View file

@ -1333,8 +1333,8 @@ qboolean R_MirrorViewBySurface (drawSurf_t *drawSurf, int entityNum) {
return qfalse; // bad portal, no portalentity
}
if (newParms.isMirror)
newParms.flags |= VPF_NOVIEWMODEL;
// Never draw viewmodels in portal or mirror views.
newParms.flags |= VPF_NOVIEWMODEL;
R_MirrorPoint (oldParms.or.origin, &surface, &camera, newParms.or.origin );