Skip to content

Commit

Permalink
Latte: Disable blending integer formats
Browse files Browse the repository at this point in the history
Despite being disabled in InitBlendState, this still causes errors on MoltenVk, so just skip it altogether
Seemingly fixes cemu-project#396 (there's a multitude of errors there in the comments, specifically referring to the issue), however I don't own BOTW and can't confirm
  • Loading branch information
exverge-0 committed Jul 11, 2024
1 parent e0d3e46 commit 374edd4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Cafe/HW/Latte/Renderer/Vulkan/VulkanPipelineCompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,8 @@ bool PipelineCompiler::Compile(bool forceCompile, bool isRenderThread, bool show
pipelineInfo.pDynamicState = &dynamicState;
pipelineInfo.pRasterizationState = &rasterizer;
pipelineInfo.pMultisampleState = &multisampling;
pipelineInfo.pColorBlendState = &colorBlending;
if (!_IsVkIntegerFormat(m_renderPassObj->GetColorFormat(0)))
pipelineInfo.pColorBlendState = &colorBlending;
pipelineInfo.layout = m_pipeline_layout;
pipelineInfo.renderPass = m_renderPassObj->m_renderPass;
pipelineInfo.pDepthStencilState = &depthStencilState;
Expand Down

0 comments on commit 374edd4

Please sign in to comment.