renderer: use names instead of numbers for shader indexes

macos/master
Dave Airlie 10 years ago
parent 4a6383f4ce
commit 040df0b86c
  1. 6
      src/vrend_renderer.c

@ -740,9 +740,9 @@ static struct vrend_linked_shader_program *add_shader_program(struct vrend_conte
return NULL;
}
sprog->ss[0] = vs;
sprog->ss[1] = fs;
sprog->ss[2] = gs;
sprog->ss[PIPE_SHADER_VERTEX] = vs;
sprog->ss[PIPE_SHADER_FRAGMENT] = fs;
sprog->ss[PIPE_SHADER_GEOMETRY] = gs;
sprog->id = prog_id;

Loading…
Cancel
Save