From f568b998b88d3ac4aca3521199023a6104d44fa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Wed, 16 Mar 2016 19:06:15 -0700 Subject: [PATCH] D3D12: Fixed AA lines. --- src/renderer_d3d12.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderer_d3d12.cpp b/src/renderer_d3d12.cpp index 3bccd34f..7483014b 100644 --- a/src/renderer_d3d12.cpp +++ b/src/renderer_d3d12.cpp @@ -2064,7 +2064,7 @@ data.NumQualityLevels = 0; _desc.SlopeScaledDepthBias = 0.0f; _desc.DepthClipEnable = !m_depthClamp; _desc.MultisampleEnable = !!(_state&BGFX_STATE_MSAA); - _desc.AntialiasedLineEnable = false; + _desc.AntialiasedLineEnable = !!(_state&BGFX_STATE_LINEAA); _desc.ForcedSampleCount = 0; _desc.ConservativeRaster = D3D12_CONSERVATIVE_RASTERIZATION_MODE_OFF; } @@ -2214,6 +2214,7 @@ data.NumQualityLevels = 0; | BGFX_STATE_BLEND_ALPHA_TO_COVERAGE | BGFX_STATE_CULL_MASK | BGFX_STATE_MSAA + | BGFX_STATE_LINEAA | BGFX_STATE_PT_MASK ;