Linux display fix

This commit is contained in:
jess 2026-04-23 14:06:58 -07:00
parent 313b25a522
commit 9b2de378ef
1 changed files with 6 additions and 0 deletions

View File

@ -81,6 +81,12 @@ pub fn create(
RawDisplayHandle::Windows(WindowsDisplayHandle::new()),
)
};
// Linux embedders (e.g. Layers) build their own surface; this entry is unused.
#[cfg(not(any(target_os = "macos", target_os = "windows")))]
let (raw_window, raw_display): (RawWindowHandle, RawDisplayHandle) = {
let _ = (ptr, width, height, scale, instance);
return None;
};
let target = wgpu::SurfaceTargetUnsafe::RawHandle {
raw_display_handle: raw_display,