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:
parent
12fb74ac56
commit
68867e30b2
|
@ -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 ] ];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue