mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
Do not access baseResourceMem on unbound buffer
This commit is contained in:
committed by
Baldur Karlsson
parent
0193703037
commit
38a61a2ec6
@@ -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