From: Michael Gilbert Date: Tue, 13 Sep 2022 00:46:21 +0000 (+0100) Subject: rebuild automatically generated opengl files X-Git-Tag: archive/raspbian/7.0_repack-10+rpi1~2^2^2^2~25 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b36bee6d6fb62c847847e3fe9b461d917ca15fb2;p=wine.git rebuild automatically generated opengl files Gbp-Pq: Topic generate Gbp-Pq: Name opengl.patch --- diff --git a/dlls/opengl32/make_opengl b/dlls/opengl32/make_opengl index ebfd3c9..26023e6 100755 --- a/dlls/opengl32/make_opengl +++ b/dlls/opengl32/make_opengl @@ -325,16 +325,6 @@ if ($version eq "1.0") { die "Incorrect OpenGL version.\n"; } -# -# Fetch the registry files -# -my $url="https://raw.githubusercontent.com/KhronosGroup/OpenGL-Registry"; -my $commit="03e1bfb87c4664d34dc7822fb591841eec747094"; - --f "gl-$commit.xml" || system "wget", "-O", "gl-$commit.xml", "$url/$commit/xml/gl.xml" || die "cannot download gl.xml"; --f "wgl-$commit.xml" || system "wget", "-O", "wgl-$commit.xml", "$url/$commit/xml/wgl.xml" || die "cannot download wgl.xml"; - - # # Then, create the list of all OpenGL functions using the registry # files. This will create two hash-tables, one with all the function @@ -579,22 +569,12 @@ sub parse_file($) } } -parse_file( "gl-$commit.xml" ); -parse_file( "wgl-$commit.xml" ); +parse_file( "/usr/share/khronos-api/gl.xml" ); +parse_file( "/usr/share/khronos-api/wgl.xml" ); parse_file( "winegl.xml" ); -# -# Get the current wgl_driver.h version -# -my $wgl_version = 0; -open HEADER, "<$wgl_driver_file" or die "cannot open $wgl_driver_file"; -while (
) -{ - next unless /^#define WINE_WGL_DRIVER_VERSION (\d+)/; - $wgl_version = $1; - last; -} -close HEADER; +# Current wgl_driver.h version, modified by debian/scripts/import +my $wgl_version = 20; # # Generate the wgl_driver.h file