Overv / VulkanTutorial

Tutorial for the Vulkan graphics and compute API
https://vulkan-tutorial.com
Creative Commons Attribution Share Alike 4.0 International
3.06k stars 511 forks source link

Wrong variable use: 'commandbuffer', in the "Rendering_and_presentation" part #283

Closed LuncyBloont closed 2 years ago

LuncyBloont commented 2 years ago

There is a mistake at Drawing_a_triangle/Drawing/Rendering_and_presentation/Submitting_the_command_buffer ("https://vulkan-tutorial.com/Drawing_a_triangle/Drawing/Rendering_and_presentation"). link

submitInfo.commandBufferCount = 1;
submitInfo.pCommandBuffers = commandBuffer;

I think submitInfo.pCommandBuffers is a pointer of VkCommandBuffer

So it can be fixed as:

submitInfo.commandBufferCount = 1;
submitInfo.pCommandBuffers = &commandBuffer;