Skip to content

Commit 7437069

Browse files
committed
gles/wgl: Migrate from ancient/unmaintained winapi to windows-rs
1 parent c0e7c1e commit 7437069

File tree

3 files changed

+272
-222
lines changed

3 files changed

+272
-222
lines changed

Cargo.lock

Lines changed: 99 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wgpu-hal/Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ gles = [
6161
"dep:khronos-egl",
6262
"dep:libloading",
6363
"dep:ndk-sys",
64-
"winapi/libloaderapi",
64+
"windows/Win32_Graphics_OpenGL",
65+
"windows/Win32_Graphics_Gdi",
66+
"windows/Win32_System_LibraryLoader",
67+
"windows/Win32_UI_WindowsAndMessaging",
6568
]
6669
## Enables the DX12 backend when targeting Windows.
6770
##
@@ -144,6 +147,8 @@ khronos-egl = { version = "6", features = ["static", "no-pkg-config"] }
144147
libloading = { version = ">=0.7, <0.9", optional = true }
145148

146149
[target.'cfg(windows)'.dependencies]
150+
# backend: Dx12 and Gles
151+
windows = { version = "0.58", default-features = false, optional = true }
147152
# backend: Dx12
148153
bit-set = { version = "0.6", optional = true }
149154
range-alloc = { version = "0.1", optional = true }

0 commit comments

Comments
 (0)