Improve the quality of the missing providers output.

In particular, note when it's probably our bug, not the app's bug.
macos/v1.5.9
Eric Anholt 11 years ago
parent 8d208fff51
commit 9b8ac73231
  1. 8
      src/dispatch_common.c

@ -496,7 +496,13 @@ epoxy_print_failure_reasons(const char *name,
"Requires one of:\n", name);
for (i = 0; providers[i] != 0; i++)
fputs(stderr, provider_names[providers[i]]);
fprintf(stderr, " %s",
provider_names[providers[i]]);
if (providers[0] == 0) {
fprintf(stderr, " No known providers. This is likely a bug "
"in libepoxy code generation\n");
}
}
PUBLIC void

Loading…
Cancel
Save