Skip to content

Commit

Permalink
msvc: avoid c++20 struct-initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian-lunarg committed Nov 21, 2024
1 parent f023560 commit 76e9492
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions framework/decode/vulkan_address_replacer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -618,8 +618,9 @@ bool VulkanAddressReplacer::create_buffer(size_t
}

// free previous resources
buffer_context = { .resource_allocator = resource_allocator_ };
buffer_context.num_bytes = num_bytes;
buffer_context = {};
buffer_context.resource_allocator = resource_allocator_;
buffer_context.num_bytes = num_bytes;

VkBufferCreateInfo buffer_create_info = {};
buffer_create_info.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO;
Expand Down

0 comments on commit 76e9492

Please sign in to comment.