From a9018759251767a5c944b5d45dfe02369dc8f536 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 21 Feb 2016 01:38:41 +0100 Subject: [PATCH] - fixed: The horizon portal drawer must set the camera position for the shader. This gets lost when several portals are drawn sequentially and this is the only portal type which needs this information but doesn't go through the normal setup. If this is not done, fog on the horizon plane can break. --- src/gl/scene/gl_portal.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gl/scene/gl_portal.cpp b/src/gl/scene/gl_portal.cpp index d088d9d70..4737f518d 100644 --- a/src/gl/scene/gl_portal.cpp +++ b/src/gl/scene/gl_portal.cpp @@ -1150,6 +1150,7 @@ void GLHorizonPortal::DrawContents() PortalAll.Unclock(); return; } + gl_RenderState.SetCameraPos(FIXED2FLOAT(viewx), FIXED2FLOAT(viewy), FIXED2FLOAT(viewz)); z=FIXED2FLOAT(sp->texheight);