mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-15 06:20:41 +00:00
Fix invalid erase using wrong sizeof() that crashes 32bit. Refs #239
This commit is contained in:
@@ -497,7 +497,7 @@ VkResult WrappedVulkan::vkCreateFramebuffer(
|
||||
record->imageAttachments = new VkResourceRecord*[VkResourceRecord::MaxImageAttachments];
|
||||
RDCASSERT(pCreateInfo->attachmentCount <= VkResourceRecord::MaxImageAttachments);
|
||||
|
||||
RDCEraseMem(record->imageAttachments, sizeof(ResourceId)*VkResourceRecord::MaxImageAttachments);
|
||||
RDCEraseMem(record->imageAttachments, sizeof(VkResourceRecord*)*VkResourceRecord::MaxImageAttachments);
|
||||
|
||||
if(pCreateInfo->renderPass != VK_NULL_HANDLE)
|
||||
record->AddParent(GetRecord(pCreateInfo->renderPass));
|
||||
|
||||
Reference in New Issue
Block a user