mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-04 04:56:57 +00:00
Fix invalid erase using wrong sizeof() that crashes 32bit. Refs #239
This commit is contained in:
1 parent
401c6949e0
commit
a2244f38d2
1 file changed
+1
-1
@@ -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