Merge pull request #10441 from OatmealDome/improved-logic-op-workaround

BlendingState: Set source and destination alpha factors in logic op workaround
This commit is contained in:
JMC47 2022-02-28 12:17:25 -05:00 committed by GitHub
commit f65dc6d525
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -196,7 +196,9 @@ void BlendingState::ApproximateLogicOpWithBlending()
blendenable = true;
subtract = approximations[u32(logicmode.Value())].subtract;
srcfactor = approximations[u32(logicmode.Value())].srcfactor;
srcfactoralpha = approximations[u32(logicmode.Value())].srcfactor;
dstfactor = approximations[u32(logicmode.Value())].dstfactor;
dstfactoralpha = approximations[u32(logicmode.Value())].dstfactor;
}
void SamplerState::Generate(const BPMemory& bp, u32 index)