From f1e2fa090bec874f9b379bb0ebfe83ea8683c0cc Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Tue, 8 Oct 2024 00:42:15 +0300 Subject: [PATCH] twn_gl_15_rendering.c: re-enable depth write after text function --- src/rendering/twn_gl_15_rendering.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rendering/twn_gl_15_rendering.c b/src/rendering/twn_gl_15_rendering.c index 5afd1bf..8c05724 100644 --- a/src/rendering/twn_gl_15_rendering.c +++ b/src/rendering/twn_gl_15_rendering.c @@ -499,6 +499,9 @@ void finally_draw_text(FontData const *font_data, glBindTexture(GL_TEXTURE_2D, 0); glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0); + + /* TODO: why doesn't it get restored if not placed here? */ + glDepthMask(GL_TRUE); }