From fd642171a44fd038eb7c34bce51db6e1c91e208f Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Tue, 8 Oct 2024 00:55:40 +0300 Subject: [PATCH] twn_draw.c: clear after swap --- src/rendering/twn_draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rendering/twn_draw.c b/src/rendering/twn_draw.c index fec1f90..5a14563 100644 --- a/src/rendering/twn_draw.c +++ b/src/rendering/twn_draw.c @@ -272,11 +272,11 @@ void render(void) { } } - clear_draw_buffer(); render_space(); render_skybox(); /* after space, as to use depth buffer for early rejection */ render_2d(); swap_buffers(); + clear_draw_buffer(); }