summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/RenderState.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2017-04-17 23:11:58 +1000
committerStenzek <stenzek@gmail.com>2017-04-18 21:33:40 +1000
commit34ad5b457dacf175d30b5521f863b45176374dff (patch)
tree174b903829422df4bedec56c4948ac919bdb0e0e /Source/Core/VideoCommon/RenderState.cpp
parent936910163aaddf63dc439b8206cb09951a158353 (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.cpp1
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)