summaryrefslogtreecommitdiff
path: root/drivers/vulkan/rendering_device_vulkan.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-09-07 17:54:52 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-09-07 17:54:52 +0200
commitedf8749691cc34cbdfdc275a945216991a99fba3 (patch)
treeddc0d7af4d71ca89ef40023dbbaf90f10b8da0f3 /drivers/vulkan/rendering_device_vulkan.cpp
parentf7261e655fffc90a357d685c979615c606451c52 (diff)
parentd1aed76a20debaca92c9979c0e9e917353d8c369 (diff)
Merge pull request #65477 from timothyqiu/bit-flags
Fix crash when executing `SubViewport.set_size_2d_override_stretch`
Diffstat (limited to 'drivers/vulkan/rendering_device_vulkan.cpp')
-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 6a88f2c442..73ae108961 100644
--- a/drivers/vulkan/rendering_device_vulkan.cpp
+++ b/drivers/vulkan/rendering_device_vulkan.cpp
@@ -9011,7 +9011,7 @@ VkSampleCountFlagBits RenderingDeviceVulkan::_ensure_supported_sample_count(Text
// Find the closest lower supported sample count.
VkSampleCountFlagBits sample_count = rasterization_sample_count[p_requested_sample_count];
while (sample_count > VK_SAMPLE_COUNT_1_BIT) {
- if (sample_count_flags & rasterization_sample_count[sample_count]) {
+ if (sample_count_flags & sample_count) {
return sample_count;
}
sample_count = (VkSampleCountFlagBits)(sample_count >> 1);