diff --git a/src/r_poly_scene.cpp b/src/r_poly_scene.cpp index ef2ef5f1b4..3b03507f17 100644 --- a/src/r_poly_scene.cpp +++ b/src/r_poly_scene.cpp @@ -274,7 +274,7 @@ void RenderPolyScene::RenderTranslucent(int portalDepth) args.objectToClip = &WorldToClip; args.mode = TriangleDrawMode::Fan; args.stenciltestvalue = portal->StencilValue + 1; - args.stencilwritevalue = StencilValue; + args.stencilwritevalue = StencilValue + 1; args.SetClipPlane(PortalPlane.x, PortalPlane.y, PortalPlane.z, PortalPlane.w); for (const auto &verts : portal->Shape) { @@ -295,7 +295,7 @@ void RenderPolyScene::RenderTranslucent(int portalDepth) args.objectToClip = &WorldToClip; args.mode = TriangleDrawMode::Fan; args.stenciltestvalue = portal->StencilValue + 1; - args.stencilwritevalue = StencilValue; + args.stencilwritevalue = StencilValue + 1; args.SetClipPlane(PortalPlane.x, PortalPlane.y, PortalPlane.z, PortalPlane.w); for (const auto &verts : portal->Shape) {