--- a/src/2d.c Sat Jun 21 22:10:54 2025 +0200 +++ b/src/2d.c Sun Jun 22 11:15:53 2025 +0200 @@ -65,9 +65,8 @@ return NULL; } AscRectangleShader *shader = asc_shader_create(codes, sizeof(*shader)); - if (asc_has_error()) { + if (shader == NULL) { asc_shader_free_codes(codes); - // TODO: must not return NULL or must add error handling on caller site return NULL; } shader->size = glGetUniformLocation(shader->program.gl_id, "size");