diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2025-10-18 01:36:29 -0400 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2025-10-18 01:36:29 -0400 |
| commit | 4ec95c0bc1223aee10449bf831d29f4f683faff7 (patch) | |
| tree | 9b0bbe206daacf19fecdcc74093c06f1cdf0f89f /graphics.c | |
| parent | b6db9c7c1b8e2cef958b892b067aa565f4c5e403 (diff) | |
fix output and swenu-run
Diffstat (limited to 'graphics.c')
| -rw-r--r-- | graphics.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |
