Skip to content

Commit a2362d7

Browse files
committed
layers: Fix 01273 false positives
1 parent 73bb91e commit a2362d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layers/core_checks/cc_wsi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ bool CoreChecks::ValidateCreateSwapchain(const VkSwapchainCreateInfoKHR &create_
517517
}
518518
}
519519
}
520-
if (!found_match) {
520+
if (!found_match && !formats.empty()) {
521521
if (!found_format) {
522522
if (LogError("VUID-VkSwapchainCreateInfoKHR-imageFormat-01273", device, create_info_loc.dot(Field::imageFormat),
523523
"is %s.", string_VkFormat(create_info.imageFormat))) {

0 commit comments

Comments
 (0)