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.
This commit is contained in:
Jay Oster 2019-10-27 20:27:42 -07:00 committed by GitHub
parent 5795fa7943
commit 6392ff9481
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)