diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index 64a2d78..ee45c23 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -905,7 +905,7 @@ static struct vrend_linked_shader_program *add_shader_program(struct vrend_conte sprog->id = prog_id; - list_add(&sprog->head, &ctx->sub->programs); + list_addtail(&sprog->head, &ctx->sub->programs); if (fs->key.pstipple_tex) sprog->fs_stipple_loc = glGetUniformLocation(prog_id, "pstipple_sampler");