pull/541/merge
Benjamin Hansen 2 weeks ago
parent 7a2d7b6f04
commit 30a6b4488e

@ -68,11 +68,7 @@ impl<'a> State<'a> {
..Default::default()
});
// # Safety
//
// The surface needs to live as long as the window that created it.
// State owns the window, so this should be safe.
let surface = unsafe { instance.create_surface(&window) }.unwrap();
let surface = instance.create_surface(window).unwrap();
let adapter = instance.request_adapter(
&wgpu::RequestAdapterOptions {

Loading…
Cancel
Save