Skip to content

Commit

Permalink
Merge pull request #65477 from timothyqiu/bit-flags
Browse files Browse the repository at this point in the history
Fix crash when executing `SubViewport.set_size_2d_override_stretch`
  • Loading branch information
akien-mga committed Sep 7, 2022
2 parents f7261e6 + d1aed76 commit edf8749
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/vulkan/rendering_device_vulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit edf8749

Please sign in to comment.