Skip to content

Commit 26fdf4c

Browse files
authored
Win32: Safer WGL implementation (#292)
1 parent a084fc1 commit 26fdf4c

11 files changed

Lines changed: 545 additions & 329 deletions

File tree

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ rust-version = "1.82"
2525
[features]
2626
default = []
2727
opengl = [
28+
"windows/Win32_Graphics_OpenGL",
29+
"windows-sys/Win32_Graphics_OpenGL",
2830
"objc2-core-foundation/CFBundle",
2931
"objc2-app-kit/NSOpenGL",
3032
"objc2-app-kit/NSOpenGLView",
@@ -47,15 +49,13 @@ bytemuck = "1.25.0"
4749
[target.'cfg(target_os="windows")'.dependencies]
4850
windows = { version = "0.62.2", features = [
4951
"Win32_Graphics_Gdi",
50-
"Win32_Graphics_OpenGL",
5152
"Win32_System_Com_StructuredStorage",
5253
"Win32_System_Ole",
5354
"Win32_System_SystemServices",
5455
"Win32_UI_WindowsAndMessaging",
5556
] }
5657
windows-sys = { version = "0.61.2", features = [
5758
"Win32_Graphics_Gdi",
58-
"Win32_Graphics_OpenGL",
5959
"Win32_System_Rpc",
6060
"Win32_System_LibraryLoader",
6161
"Win32_System_Ole",

0 commit comments

Comments
 (0)