- 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.
This commit is contained in:
Christoph Oelckers 2016-02-21 01:38:41 +01:00
parent 9af5dd357f
commit a901875925
1 changed files with 1 additions and 0 deletions

View File

@ -1150,6 +1150,7 @@ void GLHorizonPortal::DrawContents()
PortalAll.Unclock();
return;
}
gl_RenderState.SetCameraPos(FIXED2FLOAT(viewx), FIXED2FLOAT(viewy), FIXED2FLOAT(viewz));
z=FIXED2FLOAT(sp->texheight);