diff options
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); |
