From a3117976dc912a35575c1c5813a480001cd8b789 Mon Sep 17 00:00:00 2001 From: Jack Jamison Date: Mon, 20 Oct 2025 17:51:06 -0400 Subject: I like yours better --- graphics.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/graphics.c b/graphics.c index 2850d3b..4b3e3d3 100644 --- a/graphics.c +++ b/graphics.c @@ -145,7 +145,7 @@ bool init_gl(client_state* state) { } glEnable(GL_BLEND); - glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); + glBlendFunc(GL_SRC_ALPHA, GL_ONE); glEnable(GL_SCISSOR_TEST); @@ -173,9 +173,7 @@ void render_frame(client_state *state) { glViewport(0, 0, state->width, state->height); glScissor(0, 0, state->width, state->height); glClearColor(background_color.r,background_color.g,background_color.b,background_color.a); - glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE); // allow alpha channel set by background glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_FALSE); // don't allow alpha channel to be set after // bind shader and texture glUseProgram(state->text_shader); -- cgit v1.2.3