summaryrefslogtreecommitdiff
path: root/drivers/vulkan
diff options
context:
space:
mode:
authorclayjohn <claynjohn@gmail.com>2023-01-23 12:38:09 -0800
committerclayjohn <claynjohn@gmail.com>2023-01-23 12:38:09 -0800
commit5931d504c1975c5321b94a1fc118ca62a7d5c3fb (patch)
tree009f9808f1db31d44a6c412a2fe7aad617ef85e4 /drivers/vulkan
parentc309de53997feff3286295fb2d71657f112a15db (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.cpp2
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;