rebuild automatically generated opengl files
authorMichael Gilbert <mgilbert@debian.org>
Tue, 13 Sep 2022 00:46:21 +0000 (01:46 +0100)
committerMichael Gilbert <mgilbert@debian.org>
Tue, 13 Sep 2022 00:46:21 +0000 (01:46 +0100)
Gbp-Pq: Topic generate
Gbp-Pq: Name opengl.patch

dlls/opengl32/make_opengl

index ebfd3c9161e5724f5aa7059c564ee4752c22014c..26023e629bb783b6d2fcd30931ed960242714c6b 100755 (executable)
@@ -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 (<HEADER>)
-{
-    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