diff --git a/auto/bin/make_list.pl b/auto/bin/make_list.pl index 0bdf273..639dce1 100755 --- a/auto/bin/make_list.pl +++ b/auto/bin/make_list.pl @@ -54,7 +54,14 @@ foreach my $ext (sort @extlist) print " $extvar = " . $extpre . "GetExtension(\"$extname\");\n"; if (keys %$functions) { - print " if (glewExperimental || $extvar) $extvar = !_glewInit_$extname();\n"; + if ($extname =~ /WGL_.*/) + { + print " if (glewExperimental || $extvar || (!WGLEW_EXT_extensions_string && !WGLEW_ARB_extensions_string)) $extvar = !_glewInit_$extname();\n"; + } + else + { + print " if (glewExperimental || $extvar) $extvar = !_glewInit_$extname();\n"; + } } print "#endif /* $extname */\n"; }