mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-08-20 05:43:23 +02:00
Merge pull request #12448 from liamwhite/format-assert
renderer_vulkan: demote format assert to error log
This commit is contained in:
commit
14dc41d4b3
@ -755,7 +755,7 @@ VkFormat Device::GetSupportedFormat(VkFormat wanted_format, VkFormatFeatureFlags
|
|||||||
// The wanted format is not supported by hardware, search for alternatives
|
// The wanted format is not supported by hardware, search for alternatives
|
||||||
const VkFormat* alternatives = GetFormatAlternatives(wanted_format);
|
const VkFormat* alternatives = GetFormatAlternatives(wanted_format);
|
||||||
if (alternatives == nullptr) {
|
if (alternatives == nullptr) {
|
||||||
ASSERT_MSG(false,
|
LOG_ERROR(Render_Vulkan,
|
||||||
"Format={} with usage={} and type={} has no defined alternatives and host "
|
"Format={} with usage={} and type={} has no defined alternatives and host "
|
||||||
"hardware does not support it",
|
"hardware does not support it",
|
||||||
wanted_format, wanted_usage, format_type);
|
wanted_format, wanted_usage, format_type);
|
||||||
@ -774,7 +774,7 @@ VkFormat Device::GetSupportedFormat(VkFormat wanted_format, VkFormatFeatureFlags
|
|||||||
}
|
}
|
||||||
|
|
||||||
// No alternatives found, panic
|
// No alternatives found, panic
|
||||||
ASSERT_MSG(false,
|
LOG_ERROR(Render_Vulkan,
|
||||||
"Format={} with usage={} and type={} is not supported by the host hardware and "
|
"Format={} with usage={} and type={} is not supported by the host hardware and "
|
||||||
"doesn't support any of the alternatives",
|
"doesn't support any of the alternatives",
|
||||||
wanted_format, wanted_usage, format_type);
|
wanted_format, wanted_usage, format_type);
|
||||||
|
Loading…
Reference in New Issue
Block a user