mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-25 07:05:48 +00:00
Fix error identifying NULL resource for frame record
This commit is contained in:
@@ -488,7 +488,7 @@ uint32_t GetByteSize(uint32_t Width, uint32_t Height, uint32_t Depth, VkFormat F
|
||||
|
||||
VkResourceRecord::~VkResourceRecord()
|
||||
{
|
||||
VkResourceType resType = IdentifyTypeByPtr(Resource);
|
||||
VkResourceType resType = Resource != NULL ? IdentifyTypeByPtr(Resource) : eResUnknown;
|
||||
|
||||
if(resType == eResPhysicalDevice)
|
||||
SAFE_DELETE(memProps);
|
||||
|
||||
Reference in New Issue
Block a user