baldurk / renderdoc

RenderDoc is a stand-alone graphics debugging tool.
https://renderdoc.org
MIT License
9.06k stars 1.35k forks source link

Do not access baseResourceMem on unbound buffer #3474

Closed cmannett85-arm closed 2 weeks ago

cmannett85-arm commented 3 weeks ago

If a VkBuffer handle is destroyed before being bound, then its removal will be attempted by the GPU address range tracker which will access the base mem record - but this will be NULL on an unbound buffer. Buffers aren't added to the tracker unless bound, so exiting early is the correct thing to do in this case.