Removed memset on indices in non-staging path for index upload (Fixex #206)
This commit is contained in:
parent
7f687570d4
commit
cd13e69622
1 changed files with 0 additions and 1 deletions
|
|
@ -572,7 +572,6 @@ public:
|
|||
indexbufferInfo.usage = VK_BUFFER_USAGE_INDEX_BUFFER_BIT;
|
||||
|
||||
// Copy index data to a buffer visible to the host
|
||||
memset(&indices, 0, sizeof(indices));
|
||||
VK_CHECK_RESULT(vkCreateBuffer(device, &indexbufferInfo, nullptr, &indices.buf));
|
||||
vkGetBufferMemoryRequirements(device, indices.buf, &memReqs);
|
||||
memAlloc.allocationSize = memReqs.size;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue