From 10d7d3c1d17d754ea3618138d83ca79ef03a59b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alp=20Ertunga=20Elg=C3=BCn?= Date: Wed, 15 Sep 2021 15:47:14 +0300 Subject: [PATCH] Clip node clips the profiler if we don't disable stencil test. So disabled it after drawing gui. (#48) --- orthographic/render/orthographic.render_script | 1 + 1 file changed, 1 insertion(+) diff --git a/orthographic/render/orthographic.render_script b/orthographic/render/orthographic.render_script index ff815f5..671825b 100644 --- a/orthographic/render/orthographic.render_script +++ b/orthographic/render/orthographic.render_script @@ -55,6 +55,7 @@ function update(self) render.set_projection(vmath.matrix4_orthographic(0, render.get_window_width(), 0, render.get_window_height(), -1, 1)) render.draw(self.gui_pred) render.draw(self.text_pred) + render.disable_state(render.STATE_STENCIL_TEST) end function on_message(self, message_id, message)