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
}
}
-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