diff --git a/auto/bin/make_info.pl b/auto/bin/make_info.pl index b3d935f..5bf61db 100755 --- a/auto/bin/make_info.pl +++ b/auto/bin/make_info.pl @@ -44,11 +44,12 @@ if (@ARGV) print "static void _glewInfo_$extname (void)\n{\n"; if ($extvar =~ /VERSION/) { - print " glewPrintExt(\"$extname\", $extvar, $extvar);\n"; + print " glewPrintExt(\"$extname\", $extvar, $extvar, $extvar);\n"; } else { print " glewPrintExt(\"$extname\", $extvar, $extpre" . + "ewIsSupported(\"$extname\"), $extpre" . "ewGetExtension(\"$extname\"));\n"; } output_decls($functions, \&make_pfn_info); diff --git a/auto/src/glewinfo_head.c b/auto/src/glewinfo_head.c index 584122e..e1070c5 100644 --- a/auto/src/glewinfo_head.c +++ b/auto/src/glewinfo_head.c @@ -38,14 +38,16 @@ void glewDestroyContext (); /* ------------------------------------------------------------------------- */ -static void glewPrintExt (const char* name, GLint def1, GLint def2) +static void glewPrintExt (const char* name, GLboolean def1, GLboolean def2, GLboolean def3) { unsigned int i; fprintf(f, "\n%s:", name); for (i=0; i<62-strlen(name); i++) fprintf(f, " "); fprintf(f, "%s ", def1 ? "OK" : "MISSING"); if (def1 != def2) - fprintf(f, "[%s]\n", def2 ? "OK" : "MISSING"); + fprintf(f, "[%s] ", def2 ? "OK" : "MISSING"); + if (def1 != def3) + fprintf(f, "[%s]\n", def3 ? "OK" : "MISSING"); else fprintf(f, "\n"); for (i=0; i