diff --git a/examples/invaders/main.rs b/examples/invaders/main.rs index 041afc6..78b98a9 100644 --- a/examples/invaders/main.rs +++ b/examples/invaders/main.rs @@ -8,8 +8,8 @@ fn main() -> Result<(), PixelsError> { let (_window, surface) = { let window = winit::window::Window::new(&event_loop).unwrap(); - let surface = wgpu::Surface::create(&window); + (window, surface) };