diff options
| author | Stenzek <stenzek@gmail.com> | 2017-04-17 23:14:17 +1000 |
|---|---|---|
| committer | Stenzek <stenzek@gmail.com> | 2017-04-18 21:55:22 +1000 |
| commit | 9dc7358395c167925cac18af3c900fe7847da847 (patch) | |
| tree | 0f7705287f1f7c6c25e3deb1feaa98431c15fca1 /Source/Core/VideoBackends/Vulkan/RasterFont.cpp | |
| parent | 34ad5b457dacf175d30b5521f863b45176374dff (diff) | |
Vulkan: Use BlendingState from VideoCommon
Remove the internal BlendState union. Also fixes Kirby's Return to
Dreamland shadows.
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/RasterFont.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Vulkan/RasterFont.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/RasterFont.cpp b/Source/Core/VideoBackends/Vulkan/RasterFont.cpp index 7f9b736baf..689c0a8195 100644 --- a/Source/Core/VideoBackends/Vulkan/RasterFont.cpp +++ b/Source/Core/VideoBackends/Vulkan/RasterFont.cpp @@ -395,11 +395,10 @@ void RasterFont::PrintMultiLineText(VkRenderPass render_pass, const std::string& draw.SetPSSampler(0, m_texture->GetView(), g_object_cache->GetLinearSampler()); // Setup alpha blending - BlendState blend_state = Util::GetNoBlendingBlendState(); - blend_state.blend_enable = VK_TRUE; - blend_state.src_blend = VK_BLEND_FACTOR_SRC_ALPHA; - blend_state.blend_op = VK_BLEND_OP_ADD; - blend_state.dst_blend = VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA; + BlendingState blend_state = Util::GetNoBlendingBlendState(); + blend_state.blendenable = true; + blend_state.srcfactor = BlendMode::SRCALPHA; + blend_state.dstfactor = BlendMode::INVSRCALPHA; draw.SetBlendState(blend_state); draw.Draw(); |
