mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-25 00:04:15 +00:00
Fixing the teapot example on ArchLinux (GTX 1650). (#1594)
This commit is contained in:
parent
f4b189792a
commit
28637e8c67
@ -56,7 +56,6 @@ fn main() {
|
||||
let surface = WindowBuilder::new()
|
||||
.build_vk_surface(&event_loop, instance.clone())
|
||||
.unwrap();
|
||||
let dimensions: [u32; 2] = surface.window().inner_size().into();
|
||||
|
||||
let queue_family = physical
|
||||
.queue_families()
|
||||
@ -77,11 +76,13 @@ fn main() {
|
||||
.unwrap();
|
||||
|
||||
let queue = queues.next().unwrap();
|
||||
let dimensions: [u32; 2] = surface.window().inner_size().into();
|
||||
|
||||
let (mut swapchain, images) = {
|
||||
let caps = surface.capabilities(physical).unwrap();
|
||||
let format = caps.supported_formats[0].0;
|
||||
let composite_alpha = caps.supported_composite_alpha.iter().next().unwrap();
|
||||
let dimensions: [u32; 2] = surface.window().inner_size().into();
|
||||
|
||||
Swapchain::start(device.clone(), surface.clone())
|
||||
.num_images(caps.min_image_count)
|
||||
|
Loading…
Reference in New Issue
Block a user