Skip to content

Commit

Permalink
- [bug fix] fixed memory issue in allocateCommandBuffers function;
Browse files Browse the repository at this point in the history
  • Loading branch information
stanhome committed Oct 16, 2023
1 parent 89f1ddd commit 319b0ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3030,7 +3030,7 @@ namespace Piccolo
command_buffer_allocate_info.commandBufferCount = pAllocateInfo->commandBufferCount;

VkCommandBuffer vk_command_buffer;
pCommandBuffers = new RHICommandBuffer();
pCommandBuffers = new VulkanCommandBuffer();
VkResult result = vkAllocateCommandBuffers(m_device, &command_buffer_allocate_info, &vk_command_buffer);
((VulkanCommandBuffer*)pCommandBuffers)->setResource(vk_command_buffer);

Expand Down

0 comments on commit 319b0ef

Please sign in to comment.