diff options
| author | JMC47 <JMC4789@gmail.com> | 2022-02-28 12:17:25 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-28 12:17:25 -0500 |
| commit | f65dc6d5252250dc2aaea7b6ad63931738e763aa (patch) | |
| tree | 62cbca3ac1958bb5f5225e5d756e4bb4a6e8e812 /Source/Core/VideoCommon/RenderState.cpp | |
| parent | 20e4e34e9196a0ffd9a9d05c99aef46a0322a979 (diff) | |
| parent | bdc55f9557477ecbaabf3a98f2560e461bc44ba9 (diff) | |
Merge pull request #10441 from OatmealDome/improved-logic-op-workaround
BlendingState: Set source and destination alpha factors in logic op workaround
Diffstat (limited to 'Source/Core/VideoCommon/RenderState.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/RenderState.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/RenderState.cpp b/Source/Core/VideoCommon/RenderState.cpp index 15559ae67f..3b3554b4fe 100644 --- a/Source/Core/VideoCommon/RenderState.cpp +++ b/Source/Core/VideoCommon/RenderState.cpp @@ -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) |
