Skip to content

Commit

Permalink
Corrected the erroneous use of 'auto' in a few places
Browse files Browse the repository at this point in the history
  • Loading branch information
corporateshark committed Jan 19, 2025
1 parent 2dad76d commit 3863d4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lvk/vulkan/VulkanClasses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1353,7 +1353,7 @@ lvk::VulkanImmediateCommands::~VulkanImmediateCommands() {

waitAll();

for (auto& buf : buffers_) {
for (CommandBufferWrapper& buf : buffers_) {
// lifetimes of all VkFence objects are managed explicitly we do not use deferredTask() for them
vkDestroyFence(device_, buf.fence_, nullptr);
vkDestroySemaphore(device_, buf.semaphore_, nullptr);
Expand Down Expand Up @@ -1407,7 +1407,7 @@ const lvk::VulkanImmediateCommands::CommandBufferWrapper& lvk::VulkanImmediateCo
VulkanImmediateCommands::CommandBufferWrapper* current = nullptr;

// we are ok with any available buffer
for (auto& buf : buffers_) {
for (CommandBufferWrapper& buf : buffers_) {
if (buf.cmdBuf_ == VK_NULL_HANDLE) {
current = &buf;
break;
Expand Down

0 comments on commit 3863d4f

Please sign in to comment.