summaryrefslogtreecommitdiffhomepage
path: root/main
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-06-05 13:19:27 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-06-05 14:33:57 +0200
commit69e3da6e6504c35e273a04ea01fd262c74b9539c (patch)
treebb3234d38d003f972eda6c98939889ea65a00c36 /main
parent5b4c0fa56cd0719db8662258a52fe7e8bc2c8d05 (diff)
fix scenery z order
Diffstat (limited to 'main')
-rw-r--r--main/draw.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/draw.cpp b/main/draw.cpp
index bf5dfb87..d30d842f 100644
--- a/main/draw.cpp
+++ b/main/draw.cpp
@@ -152,13 +152,13 @@ void main_impl::draw_world() noexcept
},
draw_bounds, z_bounds, sz);
+ GL::Renderer::setDepthMask(false);
+
draw_world_0([&](chunk& c, int16_t, int16_t, int8_t) {
_anim_mesh.draw(_shader, sz, c, _clickable_scenery, _do_render_vobjs);
},
draw_bounds, z_bounds, sz);
- GL::Renderer::setDepthMask(false);
-
_shader.set_tint({1, 1, 1, 1});
GL::Renderer::setDepthMask(true);