Closed sawickiap closed 5 years ago
https://github.com/kondrak/vkQuake2/blob/26ac266cb154e5250cea86ffd4e77c1786b53e60/ref_vk/vk_buffer.c#L59
You store a pointer to a local array that immediately goes out of scope, so formally there is no guarantee that its pointer or contents will be valid when it's later used.
Good catch, thanks!
https://github.com/kondrak/vkQuake2/blob/26ac266cb154e5250cea86ffd4e77c1786b53e60/ref_vk/vk_buffer.c#L59
You store a pointer to a local array that immediately goes out of scope, so formally there is no guarantee that its pointer or contents will be valid when it's later used.