From 7e82d49cc59f9ac71829ff5a8fa6eb6668469bb5 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Tue, 4 Feb 2020 13:40:18 +0100 Subject: [PATCH] rhi: d3d: Make DepthClipEnable set to true ...which is the natural default, and matches other backends. Task-number: QTBUG-81852 Change-Id: I6d0788b18eb7601661ef646e650114a503a12215 Reviewed-by: Eirik Aavitsland --- src/gui/rhi/qrhid3d11.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/rhi/qrhid3d11.cpp b/src/gui/rhi/qrhid3d11.cpp index 16f533d582..ec86c31719 100644 --- a/src/gui/rhi/qrhid3d11.cpp +++ b/src/gui/rhi/qrhid3d11.cpp @@ -3467,6 +3467,7 @@ bool QD3D11GraphicsPipeline::build() rastDesc.FillMode = D3D11_FILL_SOLID; rastDesc.CullMode = toD3DCullMode(m_cullMode); rastDesc.FrontCounterClockwise = m_frontFace == CCW; + rastDesc.DepthClipEnable = true; rastDesc.ScissorEnable = m_flags.testFlag(UsesScissor); rastDesc.MultisampleEnable = rhiD->effectiveSampleCount(m_sampleCount).Count > 1; HRESULT hr = rhiD->dev->CreateRasterizerState(&rastDesc, &rastState);