diff options
| author | JMC47 <JMC4789@gmail.com> | 2021-12-22 16:39:54 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-22 16:39:54 -0500 |
| commit | b1f79d9ecf87070c78789acdf5bc329637bc5812 (patch) | |
| tree | 7d8321dcae2d694f3a131e003630e85d3cde732e /Source/Core/VideoCommon/PixelShaderManager.cpp | |
| parent | 820a424dcdf0095cf088abea921aaaac299dbccc (diff) | |
| parent | 1c421444aed7673c30429f8b92e8ac3492cfb5b4 (diff) | |
Merge pull request #10215 from OatmealDome/shader-logic-ops
VideoCommon: Support shader logic ops on Metal (Apple GPUs) and OpenGL ES
Diffstat (limited to 'Source/Core/VideoCommon/PixelShaderManager.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/PixelShaderManager.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/PixelShaderManager.cpp b/Source/Core/VideoCommon/PixelShaderManager.cpp index f63722c9c1..675bcceca5 100644 --- a/Source/Core/VideoCommon/PixelShaderManager.cpp +++ b/Source/Core/VideoCommon/PixelShaderManager.cpp @@ -510,6 +510,16 @@ void PixelShaderManager::SetBlendModeChanged() constants.blend_subtract_alpha = state.subtractAlpha; dirty = true; } + if (constants.logic_op_enable != state.logicopenable) + { + constants.logic_op_enable = state.logicopenable; + dirty = true; + } + if (constants.logic_op_mode != state.logicmode) + { + constants.logic_op_mode = state.logicmode; + dirty = true; + } s_bDestAlphaDirty = true; } |
