aboutsummaryrefslogtreecommitdiff
path: root/graphics.c
diff options
context:
space:
mode:
authorJack Jamison <jackqjamison@gmail.com>2025-10-18 01:36:29 -0400
committerJack Jamison <jackqjamison@gmail.com>2025-10-18 01:36:29 -0400
commit4ec95c0bc1223aee10449bf831d29f4f683faff7 (patch)
tree9b0bbe206daacf19fecdcc74093c06f1cdf0f89f /graphics.c
parentb6db9c7c1b8e2cef958b892b067aa565f4c5e403 (diff)
fix output and swenu-run
Diffstat (limited to 'graphics.c')
-rw-r--r--graphics.c4
1 files changed, 2 insertions, 2 deletions
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);