From 4ec95c0bc1223aee10449bf831d29f4f683faff7 Mon Sep 17 00:00:00 2001 From: Jack Jamison Date: Sat, 18 Oct 2025 01:36:29 -0400 Subject: fix output and swenu-run --- graphics.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'graphics.c') diff --git a/graphics.c b/graphics.c index d7b630a..e2f06a1 100644 --- a/graphics.c +++ b/graphics.c @@ -43,7 +43,7 @@ layout (location = 0) out vec4 frag_color;\n\ \n\ void main() {\n\ float d = texture(u_texture, o_uv).r;\n\ - float aaf = fwidth(d);\n\ + float aaf = fwidth(d) * 0.5f;\n\ float alpha = smoothstep(0.5 - aaf, 0.5 + aaf, d);\n\ frag_color = vec4(u_color, alpha);\n\ }"; @@ -113,7 +113,7 @@ bool init_gl(client_state* state) { GLint major, minor; glGetIntegerv(GL_MAJOR_VERSION, &major); glGetIntegerv(GL_MINOR_VERSION, &minor); - printf("GL version %u.%u\n", major, minor); + fprintf(stderr, "GL version %u.%u\n", major, minor); } glEnable(GL_BLEND); -- cgit v1.2.3