Sets desired image count to min_image_count
This commit is contained in:
parent
ddfa14a462
commit
61b6a5d222
1 changed files with 2 additions and 1 deletions
|
@ -358,7 +358,8 @@ impl ExampleBase {
|
||||||
let surface_capabilities =
|
let surface_capabilities =
|
||||||
surface_loader.get_physical_device_surface_capabilities_khr(pdevice, surface)
|
surface_loader.get_physical_device_surface_capabilities_khr(pdevice, surface)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let desired_image_count = surface_capabilities.min_image_count + 1;
|
// Stick with the min image count for now
|
||||||
|
let desired_image_count = surface_capabilities.min_image_count;
|
||||||
assert!(surface_capabilities.min_image_count <= desired_image_count &&
|
assert!(surface_capabilities.min_image_count <= desired_image_count &&
|
||||||
surface_capabilities.max_image_count >= desired_image_count,
|
surface_capabilities.max_image_count >= desired_image_count,
|
||||||
"Image count err");
|
"Image count err");
|
||||||
|
|
Loading…
Add table
Reference in a new issue