Skip to content

Commit

Permalink
Fixed possible amd wrong render
Browse files Browse the repository at this point in the history
Apparently the second color render pass must load the attachment or could result in a mess frame in some amd cards with some drivers
  • Loading branch information
ScrappyCocco committed Jan 28, 2020
1 parent ed71a4e commit 8161ad0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ ScrapEngine::Render::GuiRenderPass::GuiRenderPass(const vk::Format& swap_chain_i
vk::AttachmentDescriptionFlags(),
swap_chain_image_format,
msaa_samples,
vk::AttachmentLoadOp::eDontCare,
vk::AttachmentLoadOp::eLoad,
vk::AttachmentStoreOp::eStore,
vk::AttachmentLoadOp::eDontCare,
vk::AttachmentStoreOp::eDontCare,
vk::ImageLayout::eUndefined,
vk::ImageLayout::eColorAttachmentOptimal,
vk::ImageLayout::eColorAttachmentOptimal
);

Expand Down

0 comments on commit 8161ad0

Please sign in to comment.