diff options
author | clayjohn <claynjohn@gmail.com> | 2023-01-23 12:38:09 -0800 |
---|---|---|
committer | clayjohn <claynjohn@gmail.com> | 2023-01-23 12:38:09 -0800 |
commit | 5931d504c1975c5321b94a1fc118ca62a7d5c3fb (patch) | |
tree | 009f9808f1db31d44a6c412a2fe7aad617ef85e4 /drivers/vulkan | |
parent | c309de53997feff3286295fb2d71657f112a15db (diff) |
Add a few more checks to ensure that unsupported image formats are not used in the mobile renderer
Diffstat (limited to 'drivers/vulkan')
-rw-r--r-- | drivers/vulkan/rendering_device_vulkan.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vulkan/rendering_device_vulkan.cpp b/drivers/vulkan/rendering_device_vulkan.cpp index e1fed221fb..42146cd7ec 100644 --- a/drivers/vulkan/rendering_device_vulkan.cpp +++ b/drivers/vulkan/rendering_device_vulkan.cpp @@ -9370,7 +9370,7 @@ bool RenderingDeviceVulkan::has_feature(const Features p_feature) const { } break; case SUPPORTS_ATTACHMENT_VRS: { VulkanContext::VRSCapabilities vrs_capabilities = context->get_vrs_capabilities(); - return vrs_capabilities.attachment_vrs_supported; + return vrs_capabilities.attachment_vrs_supported && context->get_physical_device_features().shaderStorageImageExtendedFormats; } break; default: { return false; |