Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
YGOmod committed Sep 6, 2024
1 parent d36484d commit f8c6e8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/imgui/imgui_impl_vulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1161,7 +1161,7 @@ void ImGui_ImplVulkanH_CreateWindowSwapchain(VkPhysicalDevice physical_device, V
// Create the Render Pass
{
VkAttachmentDescription attachment = {};
colorAttachment.flags = VK_ATTACHMENT_DESCRIPTION_MAY_ALIAS_BIT;
attachment.flags = VK_ATTACHMENT_DESCRIPTION_MAY_ALIAS_BIT;
attachment.format = wd->SurfaceFormat.format;
attachment.samples = VK_SAMPLE_COUNT_1_BIT;
attachment.loadOp = wd->ClearEnable ? VK_ATTACHMENT_LOAD_OP_CLEAR : VK_ATTACHMENT_LOAD_OP_LOAD;// VK_ATTACHMENT_LOAD_OP_DONT_CARE;
Expand All @@ -1176,7 +1176,7 @@ void ImGui_ImplVulkanH_CreateWindowSwapchain(VkPhysicalDevice physical_device, V
VkSubpassDescription subpass = {};
subpass.pipelineBindPoint = VK_PIPELINE_BIND_POINT_GRAPHICS;
subpass.colorAttachmentCount = 1;
subpass.pColorAttachments = &colorAttachmentRef;
subpass.pColorAttachments = &color_attachment;
subpass.inputAttachmentCount = 0;
subpass.pInputAttachments = nullptr;
subpass.pResolveAttachments = nullptr;
Expand Down

0 comments on commit f8c6e8b

Please sign in to comment.