Skip to content

Commit b6ce967

Browse files
committed
Fix UI overlay buffer destruction
1 parent e2a6cb2 commit b6ce967

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base/VulkanUIOverlay.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,8 +416,8 @@ namespace vks
416416
void UIOverlay::freeResources()
417417
{
418418
for (auto& buffer : buffers) {
419-
buffers[currentBuffer].vertexBuffer.destroy();
420-
buffers[currentBuffer].indexBuffer.destroy();
419+
buffer.vertexBuffer.destroy();
420+
buffer.indexBuffer.destroy();
421421
}
422422
vkDestroyImageView(device->logicalDevice, fontView, nullptr);
423423
vkDestroyImage(device->logicalDevice, fontImage, nullptr);

0 commit comments

Comments
 (0)