From 93bd923c174723e233823e331db4675fbc25971f Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Wed, 1 May 2019 01:00:11 +0200 Subject: [PATCH] [d3d11] Set up extra state for the HUD renderer --- src/d3d11/d3d11_swapchain.cpp | 3 +++ src/d3d11/d3d11_swapchain.h | 1 + 2 files changed, 4 insertions(+) diff --git a/src/d3d11/d3d11_swapchain.cpp b/src/d3d11/d3d11_swapchain.cpp index 931bd1079..ae811d17a 100644 --- a/src/d3d11/d3d11_swapchain.cpp +++ b/src/d3d11/d3d11_swapchain.cpp @@ -279,6 +279,7 @@ namespace dxvk { m_context->setMultisampleState(m_msState); m_context->setDepthStencilState(m_dsState); m_context->setLogicOpState(m_loState); + m_context->setExtraState(m_xsState); m_context->setBlendMode(0, m_blendMode); m_context->setInputAssemblyState(m_iaState); @@ -613,6 +614,8 @@ namespace dxvk { m_loState.enableLogicOp = VK_FALSE; m_loState.logicOp = VK_LOGIC_OP_NO_OP; + + m_xsState.alphaCompareOp = VK_COMPARE_OP_ALWAYS; m_blendMode.enableBlending = VK_FALSE; m_blendMode.colorSrcFactor = VK_BLEND_FACTOR_ONE; diff --git a/src/d3d11/d3d11_swapchain.h b/src/d3d11/d3d11_swapchain.h index 75edb5260..67cdbe524 100644 --- a/src/d3d11/d3d11_swapchain.h +++ b/src/d3d11/d3d11_swapchain.h @@ -109,6 +109,7 @@ namespace dxvk { DxvkMultisampleState m_msState; DxvkDepthStencilState m_dsState; DxvkLogicOpState m_loState; + DxvkExtraState m_xsState; DxvkBlendMode m_blendMode; D3D11Texture2D* m_backBuffer = nullptr;