godot/drivers/vulkan
ChibiDenDen d104d8447b
Fix use-after-free for VkAttachmentReference
In the flow where VK_KHR_CREATE_RENDERPASS_2_EXTENSION_NAME does not exist
VkAttachmentReference are created inside a loop and their backing buffer is referenced in the subpass object.
the VkAttachmentReference vectors are freed once the loop exists, causing the subpass to point to freed data.

Add all the VkAttachmentReference to a vector in the scope of the entire function, to ensure they are not freed until vkCreateRenderPass is called
2023-02-20 11:54:52 +02:00
..
rendering_device_vulkan.cpp Make draw command labels thread safe 2023-02-10 21:27:31 +01:00
rendering_device_vulkan.h Merge pull request #70663 from EpEpDragon/feature_buffer_get_data_size_option 2023-02-10 18:49:28 +01:00
SCsub Rename OSX to macOS and iPhoneOS to iOS. 2022-07-21 09:37:52 +03:00
vulkan_context.cpp Fix use-after-free for VkAttachmentReference 2023-02-20 11:54:52 +02:00
vulkan_context.h Enabling additional vulkan extension and adding further checks 2023-01-15 14:49:15 +11:00
vulkan_hooks.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00