summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/RenderState.cpp
diff options
context:
space:
mode:
authorTellowKrinkle <tellowkrinkle@gmail.com>2022-06-13 18:24:57 -0500
committerTellowKrinkle <tellowkrinkle@gmail.com>2022-07-15 15:31:47 -0500
commitfb5648541ce93cf4938dd58e635f7c2d1a3a1569 (patch)
tree020329bb79cf64f1882e8a4ab9c83f9cd1ed6153 /Source/Core/VideoCommon/RenderState.cpp
parent991024173e3d048ea3a056c8debb6f92ae7b2da0 (diff)
VideoCommon: Remove dstalpha from BlendingState
It's not supported by any PC graphics API, and therefore completely unused
Diffstat (limited to 'Source/Core/VideoCommon/RenderState.cpp')
-rw-r--r--Source/Core/VideoCommon/RenderState.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/RenderState.cpp b/Source/Core/VideoCommon/RenderState.cpp
index a997c654f2..7df51a1503 100644
--- a/Source/Core/VideoCommon/RenderState.cpp
+++ b/Source/Core/VideoCommon/RenderState.cpp
@@ -120,12 +120,12 @@ void BlendingState::Generate(const BPMemory& bp)
// Start with everything disabled.
hex = 0;
- bool target_has_alpha = bp.zcontrol.pixel_format == PixelFormat::RGBA6_Z24;
- bool alpha_test_may_succeed = bp.alpha_test.TestResult() != AlphaTestResult::Fail;
+ const bool target_has_alpha = bp.zcontrol.pixel_format == PixelFormat::RGBA6_Z24;
+ const bool alpha_test_may_succeed = bp.alpha_test.TestResult() != AlphaTestResult::Fail;
colorupdate = bp.blendmode.colorupdate && alpha_test_may_succeed;
alphaupdate = bp.blendmode.alphaupdate && target_has_alpha && alpha_test_may_succeed;
- dstalpha = bp.dstalpha.enable && alphaupdate;
+ const bool dstalpha = bp.dstalpha.enable && alphaupdate;
usedualsrc = true;
// The subtract bit has the highest priority