static void bind_const_locs(struct vrend_linked_shader_program *sprog,
                            int shader_type)
{
  if (sprog->ss[shader_type]->sel->sinfo.num_consts) {
     char name[32];
     snprintf(name, 32, "%sconst0", pipe_shader_to_prefix(shader_type));
     sprog->const_location[shader_type] = glGetUniformLocation(sprog->id, name);
  } else
      sprog->const_location[shader_type] = -1;
}
static void bind_const_locs(struct vrend_linked_shader_program *sprog,
                            int shader_type)
{
  if (sprog->ss[shader_type]->sel->sinfo.num_consts) {
     char name[32];
     snprintf(name, 32, "%sconst0", pipe_shader_to_prefix(shader_type));
     sprog->const_location[shader_type] = glGetUniformLocation(sprog->id, name);
  } else
      sprog->const_location[shader_type] = -1;
}