Skip to content

Commit

Permalink
Bugfix for retro software mode mirrors not working
Browse files Browse the repository at this point in the history
  • Loading branch information
TehRealSalt authored and coelckers committed Jun 23, 2022
1 parent 8c244f6 commit 67127e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rendering/swrenderer/scene/r_portal.cpp
Expand Up @@ -329,9 +329,9 @@ namespace swrenderer
DAngle startang = viewpoint.Angles.Yaw;
DVector3 startpos = viewpoint.Pos;
DVector3 savedpath[2] = { viewpoint.Path[0], viewpoint.Path[1] };
ActorRenderFlags savedvisibility = viewpoint.camera ? viewpoint.camera->renderflags & RF_INVISIBLE : ActorRenderFlags::FromInt(0);
ActorRenderFlags savedvisibility = viewpoint.camera ? viewpoint.camera->renderflags & RF_MAYBEINVISIBLE : ActorRenderFlags::FromInt(0);

viewpoint.camera->renderflags &= ~RF_INVISIBLE;
viewpoint.camera->renderflags &= ~RF_MAYBEINVISIBLE;

CurrentPortalUniq++;

Expand Down Expand Up @@ -437,7 +437,7 @@ namespace swrenderer

Thread->OpaquePass->RenderScene(Thread->Viewport->Level());
Thread->Clip3D->ResetClip(); // reset clips (floor/ceiling)
if (!savedvisibility && viewpoint.camera) viewpoint.camera->renderflags &= ~RF_INVISIBLE;
if (!savedvisibility && viewpoint.camera) viewpoint.camera->renderflags &= ~RF_MAYBEINVISIBLE;

Thread->PlaneList->Render();
RenderPlanePortals();
Expand Down

0 comments on commit 67127e4

Please sign in to comment.