renderer: add program to end of list.

This seems to do better in xonotic traces, we at least don't
traverse as much of the list to pick up the shaders.

I think we should be using a hash table here really.
macos/master
Dave Airlie 9 years ago
parent 5ffeee9230
commit 8aa342721d
  1. 2
      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");

Loading…
Cancel
Save