Skip to content

Commit

Permalink
Improve Instance::available_backend_features() on macOS.
Browse files Browse the repository at this point in the history
The check for macOS and Angle should add `Backends::GL` not
`Backends::VULKAN`. Similarly, the comment gets updated to
not refer to Vulkan.

This code was introduced in gfx-rs#5167.
  • Loading branch information
waywardmonkeys committed Feb 5, 2024
1 parent 563d920 commit 617d338
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wgpu/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1791,9 +1791,9 @@ impl Instance {
backends = backends.union(Backends::VULKAN);
}

// GL Vulkan on Mac is only available through angle.
// GL on Mac is only available through angle.
if cfg!(target_os = "macos") && cfg!(feature = "angle") {
backends = backends.union(Backends::VULKAN);
backends = backends.union(Backends::GL);
}
} else {
if cfg!(webgpu) {
Expand Down

0 comments on commit 617d338

Please sign in to comment.