You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Fix crash when executing SubViewport.set_size_2d_override_stretch
This commit is contained in:
@@ -9011,7 +9011,7 @@ VkSampleCountFlagBits RenderingDeviceVulkan::_ensure_supported_sample_count(Text
|
|||||||
// Find the closest lower supported sample count.
|
// Find the closest lower supported sample count.
|
||||||
VkSampleCountFlagBits sample_count = rasterization_sample_count[p_requested_sample_count];
|
VkSampleCountFlagBits sample_count = rasterization_sample_count[p_requested_sample_count];
|
||||||
while (sample_count > VK_SAMPLE_COUNT_1_BIT) {
|
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;
|
return sample_count;
|
||||||
}
|
}
|
||||||
sample_count = (VkSampleCountFlagBits)(sample_count >> 1);
|
sample_count = (VkSampleCountFlagBits)(sample_count >> 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user