fixed error (#51)

This commit is contained in:
HavenOfTheRaven
2024-06-16 18:04:44 -06:00
committed by GitHub
parent c06ec6d974
commit 371d3c2757

View File

@@ -508,7 +508,7 @@ impl WlxGraphics {
Arc<vulkano::swapchain::Surface>,
)> {
use vulkano::swapchain::Surface;
use winit::{event_loop::EventLoop, window::WindowBuilder};
use winit::{event_loop::EventLoop,window::Window};
let event_loop = EventLoop::new().unwrap();
let mut vk_instance_extensions = Surface::required_extensions(&event_loop).unwrap();
@@ -524,7 +524,7 @@ impl WlxGraphics {
},
)?;
let window = Arc::new(WindowBuilder::new().build(&event_loop).unwrap());
let window = Arc::new(event_loop.create_window(Window::default_attributes()).unwrap());
let surface = Surface::from_window(instance.clone(), window.clone())?;
let mut device_extensions = get_device_extensions();