mirror of
https://github.com/godotengine/godot
synced 2024-11-02 11:59:10 +00:00
d104d8447b
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 |
||
---|---|---|
.. | ||
rendering_device_vulkan.cpp | ||
rendering_device_vulkan.h | ||
SCsub | ||
vulkan_context.cpp | ||
vulkan_context.h | ||
vulkan_hooks.h |