Module: wine Branch: master Commit: 68867e30b2ff33ea04d1b6150b4cc76a72976916 URL: http://source.winehq.org/git/wine.git/?a=commit;h=68867e30b2ff33ea04d1b6150b...
Author: Sebastian Lackner sebastian@fds-team.de Date: Sat Feb 13 00:21:03 2016 +0100
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
---
dlls/opengl32/make_opengl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/opengl32/make_opengl b/dlls/opengl32/make_opengl index 2b15f58..ec782ed 100755 --- a/dlls/opengl32/make_opengl +++ b/dlls/opengl32/make_opengl @@ -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 ] ]; } }