I'm pretty sure the source of the memory leak was a double created render target in the original code.
First the render target was created using CreateCommittedResource() and then, at the end of render_target_init(), the render_target->impl.renderTarget ptr was overwritten by either
This fix was only added after a visual inspection and has only been validated with the Input test. More thorough testing is definitely needed to validate correctness.
Changed how render targets are acquired/created in the d3d12 backend to fix https://github.com/Kode/Kinc/issues/810
I'm pretty sure the source of the memory leak was a double created render target in the original code. First the render target was created using
CreateCommittedResource()
and then, at the end ofrender_target_init()
, therender_target->impl.renderTarget
ptr was overwritten by eitheror
This fix was only added after a visual inspection and has only been validated with the Input test. More thorough testing is definitely needed to validate correctness.