Skip to content

Commit

Permalink
Make GLES DeviceType unknown by default
Browse files Browse the repository at this point in the history
  • Loading branch information
PolyMeilex authored and kvark committed May 12, 2022
1 parent a5e7275 commit bfcf5fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wgpu-core/src/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {

let preferred_gpu = match desc.power_preference {
PowerPreference::LowPower => integrated.or(other).or(discrete).or(virt).or(cpu),
PowerPreference::HighPerformance => discrete.or(other).or(integrated).or(virt).or(cpu),
PowerPreference::HighPerformance => discrete.or(integrated).or(other).or(virt).or(cpu),
};

let mut selected = preferred_gpu.unwrap_or(0);
Expand Down
2 changes: 1 addition & 1 deletion wgpu-hal/src/gles/adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ impl super::Adapter {
} else if strings_that_imply_cpu.iter().any(|&s| renderer.contains(s)) {
wgt::DeviceType::Cpu
} else {
wgt::DeviceType::DiscreteGpu
wgt::DeviceType::Other
};

// source: Sascha Willems at Vulkan
Expand Down

0 comments on commit bfcf5fa

Please sign in to comment.