mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-08 05:11:32 +00:00
Do not access baseResourceMem on unbound buffer
This commit is contained in:
1 parent
0193703037
commit
38a61a2ec6
1 file changed
+4
@@ -42,6 +42,10 @@ GPUAddressRange WrappedVulkan::CreateAddressRange(VkDevice device, VkBuffer buff
|
||||
VkResourceRecord *record = GetRecord(buffer);
|
||||
VkResourceRecord *memrecord = GetResourceManager()->GetResourceRecord(record->baseResourceMem);
|
||||
|
||||
// Just in case this is called when a buffer is being destroyed without being bound
|
||||
if(!memrecord)
|
||||
return {};
|
||||
|
||||
const VkBufferDeviceAddressInfo addrInfo = {
|
||||
VK_STRUCTURE_TYPE_BUFFER_DEVICE_ADDRESS_INFO,
|
||||
NULL,
|
||||
|
||||
Reference in new issue
Block a user