don't hide horizon if you go below map, and border block is air (thanks masoncb)

This commit is contained in:
UnknownShadow200 2019-03-08 22:38:45 +11:00
parent 87f1677e62
commit 2e9e2b0be4

View File

@ -568,7 +568,7 @@ void EnvRenderer_RenderMapEdges(double delta) {
/* Do not draw water when player cannot see it */
/* Fixes some 'depth bleeding through' issues with 16 bit depth buffers on large maps */
int yVisible = min(0, Env_SidesHeight);
if (Camera.CurrentPos.Y < yVisible) return;
if (Camera.CurrentPos.Y < yVisible && sides_vb) return;
EnvRenderer_RenderBorders(Env_EdgeBlock,
edges_vb, edges_tex, edges_vertices);