From 7576068202487ee81bd0b9b3b445a7f36a1fe220 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Thu, 24 May 2018 11:58:51 +0300 Subject: [PATCH] - fixed compilation warning with MSVC 2015 src\polyrenderer\scene/poly_portal.cpp(142): warning C4800: 'line_t *': forcing value to bool 'true' or 'false' (performance warning) --- src/polyrenderer/scene/poly_portal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/polyrenderer/scene/poly_portal.cpp b/src/polyrenderer/scene/poly_portal.cpp index 93fe10053..f85314564 100644 --- a/src/polyrenderer/scene/poly_portal.cpp +++ b/src/polyrenderer/scene/poly_portal.cpp @@ -139,7 +139,7 @@ void PolyDrawLinePortal::Render(int portalDepth) DVector2 pt2 = clipLine->v2->fPos() - PolyRenderer::Instance()->Viewpoint.Pos; bool backfacing = (pt1.Y * (pt1.X - pt2.X) + pt1.X * (pt2.Y - pt1.Y) >= 0); - PortalViewpoint = PolyRenderer::Instance()->SetupPerspectiveMatrix(Mirror); + PortalViewpoint = PolyRenderer::Instance()->SetupPerspectiveMatrix(Mirror != nullptr); PortalViewpoint.StencilValue = StencilValue; PortalViewpoint.PortalDepth = portalDepth; PortalViewpoint.PortalEnterLine = clipLine;