As of right now it leaks several things when losing/acquiring focus and being resized. As far as i can tell, this is what is being leaked:
- swapchain_data_t
- Basically all of the Vk* stuff inside this struct. I realize this is weirdly structured. I have tried, in different ways, to decouple the unrelated fields (such as the images, render pass, the descriptor stuff, the sampler and the pipeline and so on) from the struct because all of this does not need to be recreated when the swapchain gets recreated, but each time it complained about fences not being set up and/or invalid descriptors.
- krosshair_draw_t
- buffers, this is collateral damage from the scuffed design in swapchain_data_t.
- semaphores and the fence
this is all i can i think of right now.
As of right now it leaks several things when losing/acquiring focus and being resized. As far as i can tell, this is what is being leaked:
this is all i can i think of right now.