diff options
| author | Stenzek <stenzek@gmail.com> | 2017-04-17 23:11:58 +1000 |
|---|---|---|
| committer | Stenzek <stenzek@gmail.com> | 2017-04-18 21:33:40 +1000 |
| commit | 34ad5b457dacf175d30b5521f863b45176374dff (patch) | |
| tree | 174b903829422df4bedec56c4948ac919bdb0e0e /Source/Core/VideoCommon/RenderState.cpp | |
| parent | 936910163aaddf63dc439b8206cb09951a158353 (diff) | |
VideoCommon: Add usedualsrc field to BlendingState
This is because we re-use BlendingState for our internal drawing (e.g.
RasterFont) and for these shaders, we can't assume the presence of a
second color output.
Diffstat (limited to 'Source/Core/VideoCommon/RenderState.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/RenderState.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/RenderState.cpp b/Source/Core/VideoCommon/RenderState.cpp index 2e84646ce4..04c476e8da 100644 --- a/Source/Core/VideoCommon/RenderState.cpp +++ b/Source/Core/VideoCommon/RenderState.cpp @@ -65,6 +65,7 @@ void BlendingState::Generate(const BPMemory& bp) colorupdate = bp.blendmode.colorupdate && alpha_test_may_success; alphaupdate = bp.blendmode.alphaupdate && target_has_alpha && alpha_test_may_success; dstalpha = bp.dstalpha.enable && alphaupdate; + usedualsrc = true; // The subtract bit has the highest priority if (bp.blendmode.subtract) |
