diff options
| author | Stenzek <stenzek@users.noreply.github.com> | 2017-04-18 22:16:32 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-18 22:16:32 +1000 |
| commit | d1dc9d5a0ccbe17f47b74517a0636751de9f888c (patch) | |
| tree | 8423523f082705e253cc37f81f98cbf250878715 /Source/Core/VideoBackends/Vulkan/RasterFont.cpp | |
| parent | 16a947a88b6fee5ce96373550140bcb4b3911565 (diff) | |
| parent | fd896bd9e051dd29b4186e6b028067ecade4b515 (diff) | |
Merge pull request #5284 from stenzek/vulkan-videocommon-blending-state
Vulkan: Use BlendingState from VideoCommon
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(); |
