Skip to content

Commit

Permalink
Improve Instance::available_backend_features() on macOS. (#5199)
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys authored Feb 5, 2024
1 parent 32e70bc commit 01e94bc
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 01e94bc

Please sign in to comment.