wgpu: Apply Nvidia driver workaround regardless of cctk feature

This commit is contained in:
Ian Douglas Scott 2026-07-06 19:07:11 -07:00 • committed by Ian Douglas Scott
parent 371dd94a2a
commit 5671e49c9b
6 changed files with 8 additions and 18 deletions

View file

@ -11,7 +11,6 @@ use crate::{Engine, Renderer};
#[cfg(all(
unix,
feature = "cctk",
not(target_os = "macos"),
not(target_os = "redox")
))]
@ -67,7 +66,6 @@ impl Compositor {
) -> Result<Self, Error> {
#[cfg(all(
unix,
feature = "cctk",
not(target_os = "macos"),
not(target_os = "redox")
))]
@ -76,16 +74,6 @@ impl Compositor {
.or_else(|| get_x11_device_ids(window))
});
#[cfg(all(
unix,
not(feature = "cctk"),
not(target_os = "macos"),
not(target_os = "redox")
))]
let ids = compatible_window
.as_ref()
.and_then(|window| get_x11_device_ids(window));
// HACK:
// 1. If we specifically didn't select an nvidia gpu
// 2. and the user didn't specifically request an nvidia gpu