Pass correct buffer create info reference for index buffer (Fixes #17)
This commit is contained in:
parent
40f13fc770
commit
5029b8fd07
1 changed files with 1 additions and 1 deletions
|
|
@ -354,7 +354,7 @@ public:
|
||||||
indexbufferInfo.flags = 0;
|
indexbufferInfo.flags = 0;
|
||||||
// Copy index data to VRAM
|
// Copy index data to VRAM
|
||||||
memset(&indices, 0, sizeof(indices));
|
memset(&indices, 0, sizeof(indices));
|
||||||
err = vkCreateBuffer(device, &bufInfo, nullptr, &indices.buf);
|
err = vkCreateBuffer(device, &indexbufferInfo, nullptr, &indices.buf);
|
||||||
assert(!err);
|
assert(!err);
|
||||||
vkGetBufferMemoryRequirements(device, indices.buf, &memReqs);
|
vkGetBufferMemoryRequirements(device, indices.buf, &memReqs);
|
||||||
memAlloc.allocationSize = memReqs.size;
|
memAlloc.allocationSize = memReqs.size;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue