From 6392ff9481a8e3d62b74d9385d68bf79a9586032 Mon Sep 17 00:00:00 2001 From: Jay Oster Date: Sun, 27 Oct 2019 20:27:42 -0700 Subject: [PATCH] Fix syntax in the example (#27) - This works because `wgpu` is a dependency for `pixels` - But this example should be demonstrating how to ony depend on `pixels` ... And whatever windowing system and event-loop you might want. --- examples/invaders/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/invaders/main.rs b/examples/invaders/main.rs index d1cb912..d4120d8 100644 --- a/examples/invaders/main.rs +++ b/examples/invaders/main.rs @@ -95,7 +95,7 @@ fn main() -> Result<(), Error> { fn create_window( title: &str, event_loop: &EventLoop<()>, -) -> (winit::window::Window, wgpu::Surface, u32, u32, f64) { +) -> (winit::window::Window, pixels::wgpu::Surface, u32, u32, f64) { // Create a hidden window so we can estimate a good default window size let window = winit::window::WindowBuilder::new() .with_visible(false)