opengl32: Ensure extension tables generated by make_opengl contain earliest GL_VERSION for each function.

Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sebastian Lackner 2016-02-13 00:21:03 +01:00 committed by Alexandre Julliard
parent 12fb74ac56
commit 68867e30b2
1 changed files with 4 additions and 2 deletions

View File

@ -692,12 +692,14 @@ sub parse_file($$)
}
# 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(\||$)/)
{
for my $req (@{$v->{require}}) {
for (keys %{$req->{command}}) {
if (!$norm_functions{$_}) {
if (!$ext_functions{$_} && !$norm_functions{$_}) {
$ext_functions{$_} = [ $functions{$_}[0], $functions{$_}[1], [ $k ] ];
}
}