From 51fe3eee02107d06b36741b5661e1d607c06ed75 Mon Sep 17 00:00:00 2001 From: Giuseppe Barbieri Date: Wed, 2 May 2018 14:22:54 +0200 Subject: [PATCH] Update triangle.cpp --- examples/triangle/triangle.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/examples/triangle/triangle.cpp b/examples/triangle/triangle.cpp index 095a472d..8fea1aba 100644 --- a/examples/triangle/triangle.cpp +++ b/examples/triangle/triangle.cpp @@ -463,10 +463,6 @@ public: VK_CHECK_RESULT(vkAllocateMemory(device, &memAlloc, nullptr, &indices.memory)); VK_CHECK_RESULT(vkBindBufferMemory(device, indices.buffer, indices.memory, 0)); - VkCommandBufferBeginInfo cmdBufferBeginInfo = {}; - cmdBufferBeginInfo.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO; - cmdBufferBeginInfo.pNext = nullptr; - // Buffer copies have to be submitted to a queue, so we need a command buffer for them // Note: Some devices offer a dedicated transfer queue (with only the transfer bit set) that may be faster when doing lots of copies VkCommandBuffer copyCmd = getCommandBuffer(true);