We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 16fbe77 + 7e7812e commit 351a8dfCopy full SHA for 351a8df
1 file changed
vulkan/libvulkan/swapchain.cpp
@@ -1225,8 +1225,15 @@ VkResult GetPhysicalDeviceSurfaceFormats2KHR(
1225
surfaceCompressionProps
1226
->imageCompressionFixedRateFlags =
1227
compressionProps.imageCompressionFixedRateFlags;
1228
- } else {
+ } else if (compressionRes ==
1229
+ VK_ERROR_OUT_OF_HOST_MEMORY ||
1230
+ compressionRes ==
1231
+ VK_ERROR_OUT_OF_DEVICE_MEMORY) {
1232
return compressionRes;
1233
+ } else {
1234
+ // For any of the *_NOT_SUPPORTED errors we continue
1235
+ // onto the next format
1236
+ continue;
1237
}
1238
1239
} break;
0 commit comments