diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2023-12-26 11:45:33 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-26 11:45:33 -0500 |
| commit | fd035bfd90a8248ceb4a3a3eaf83e91c6de4b8ff (patch) | |
| tree | adcefc69361723789c5b9e864c5c04af5794aa6a /src | |
| parent | 8502b07266cc12e4ec1db556c49a7aa622d2ca9f (diff) | |
| parent | 188916635a0bc2e3cf5f6232197ed86ce011ec4e (diff) | |
Merge pull request #12448 from liamwhite/format-assert
renderer_vulkan: demote format assert to error log
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/vulkan_common/vulkan_device.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp index a6fbca69eb..727bbd98d2 100644 --- a/src/video_core/vulkan_common/vulkan_device.cpp +++ b/src/video_core/vulkan_common/vulkan_device.cpp @@ -755,10 +755,10 @@ VkFormat Device::GetSupportedFormat(VkFormat wanted_format, VkFormatFeatureFlags // The wanted format is not supported by hardware, search for alternatives const VkFormat* alternatives = GetFormatAlternatives(wanted_format); if (alternatives == nullptr) { - ASSERT_MSG(false, - "Format={} with usage={} and type={} has no defined alternatives and host " - "hardware does not support it", - wanted_format, wanted_usage, format_type); + LOG_ERROR(Render_Vulkan, + "Format={} with usage={} and type={} has no defined alternatives and host " + "hardware does not support it", + wanted_format, wanted_usage, format_type); return wanted_format; } @@ -774,10 +774,10 @@ VkFormat Device::GetSupportedFormat(VkFormat wanted_format, VkFormatFeatureFlags } // No alternatives found, panic - ASSERT_MSG(false, - "Format={} with usage={} and type={} is not supported by the host hardware and " - "doesn't support any of the alternatives", - wanted_format, wanted_usage, format_type); + LOG_ERROR(Render_Vulkan, + "Format={} with usage={} and type={} is not supported by the host hardware and " + "doesn't support any of the alternatives", + wanted_format, wanted_usage, format_type); return wanted_format; } |
