diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/dawn/002-fix-uwp.patch | |
Diffstat (limited to 'vcpkg/ports/dawn/002-fix-uwp.patch')
| -rw-r--r-- | vcpkg/ports/dawn/002-fix-uwp.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/vcpkg/ports/dawn/002-fix-uwp.patch b/vcpkg/ports/dawn/002-fix-uwp.patch new file mode 100644 index 0000000..15213d3 --- /dev/null +++ b/vcpkg/ports/dawn/002-fix-uwp.patch @@ -0,0 +1,19 @@ +diff --git a/src/dawn/native/d3d/PlatformFunctions.cpp b/src/dawn/native/d3d/PlatformFunctions.cpp +index 12d65e0db5..d3abb05fb5 100644 +--- a/src/dawn/native/d3d/PlatformFunctions.cpp ++++ b/src/dawn/native/d3d/PlatformFunctions.cpp +@@ -121,10 +121,14 @@ MaybeError PlatformFunctions::EnsureFXC(std::span<const std::string> searchPaths + } + + void PlatformFunctions::InitWindowsVersion() { ++#if DAWN_PLATFORM_IS(WINUWP) ++ return; ++#else + // Currently we only care about the build number of Windows 10 and Windows 11. + if (!IsWindows10OrGreater()) { + return; + } ++#endif + + // Referenced from base/win/windows_version.cc in Chromium + constexpr wchar_t kRegKeyWindowsNTCurrentVersion[] = |