Commit 68867e30 authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

opengl32: Ensure extension tables generated by make_opengl contain earliest…

opengl32: Ensure extension tables generated by make_opengl contain earliest GL_VERSION for each function. Signed-off-by: 's avatarSebastian Lackner <sebastian@fds-team.de> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 12fb74ac
...@@ -692,12 +692,14 @@ sub parse_file($$) ...@@ -692,12 +692,14 @@ sub parse_file($$)
} }
# generate extension functions from norm functions, if they are newer than the category # generate extension functions from norm functions, if they are newer than the category
while (my ($k, $v) = each(%{$data->{feature}})) { my %features = %{$data->{feature}};
foreach (sort keys %features) {
my ($k, $v) = %features{$_};
if (!$norm_categories{$k} && $v->{api} =~ /^gl(\||$)/) if (!$norm_categories{$k} && $v->{api} =~ /^gl(\||$)/)
{ {
for my $req (@{$v->{require}}) { for my $req (@{$v->{require}}) {
for (keys %{$req->{command}}) { for (keys %{$req->{command}}) {
if (!$norm_functions{$_}) { if (!$ext_functions{$_} && !$norm_functions{$_}) {
$ext_functions{$_} = [ $functions{$_}[0], $functions{$_}[1], [ $k ] ]; $ext_functions{$_} = [ $functions{$_}[0], $functions{$_}[1], [ $k ] ];
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment