max_image_count can be 0 to indicate no limit
This commit is contained in:
parent
61b6a5d222
commit
2e1079b77c
1 changed files with 2 additions and 1 deletions
|
@ -361,7 +361,8 @@ impl ExampleBase {
|
|||
// 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 &&
|
||||
surface_capabilities.max_image_count >= desired_image_count,
|
||||
(surface_capabilities.max_image_count >= desired_image_count ||
|
||||
surface_capabilities.max_image_count == 0),
|
||||
"Image count err");
|
||||
let surface_resolution = match surface_capabilities.current_extent.width {
|
||||
std::u32::MAX => {
|
||||
|
|
Loading…
Add table
Reference in a new issue