diff --git a/crates/fj-viewer/src/graphics/renderer.rs b/crates/fj-viewer/src/graphics/renderer.rs index 027daa15b..e6c472ae9 100644 --- a/crates/fj-viewer/src/graphics/renderer.rs +++ b/crates/fj-viewer/src/graphics/renderer.rs @@ -44,12 +44,7 @@ impl Renderer { }); // This is sound, as `window` is an object to create a surface upon. - let surface = unsafe { - instance.create_surface_unsafe( - wgpu::SurfaceTargetUnsafe::from_window(&screen.window()) - .unwrap(), - ) - }?; + let surface = instance.create_surface(screen.window())?; for adapter in instance.enumerate_adapters(wgpu::Backends::all()) { debug!("Available adapter: {:?}", adapter.get_info());