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 <eirik.aavitsland@qt.io>
This commit is contained in:
parent
1d77945094
commit
7e82d49cc5
@ -3467,6 +3467,7 @@ bool QD3D11GraphicsPipeline::build()
|
|||||||
rastDesc.FillMode = D3D11_FILL_SOLID;
|
rastDesc.FillMode = D3D11_FILL_SOLID;
|
||||||
rastDesc.CullMode = toD3DCullMode(m_cullMode);
|
rastDesc.CullMode = toD3DCullMode(m_cullMode);
|
||||||
rastDesc.FrontCounterClockwise = m_frontFace == CCW;
|
rastDesc.FrontCounterClockwise = m_frontFace == CCW;
|
||||||
|
rastDesc.DepthClipEnable = true;
|
||||||
rastDesc.ScissorEnable = m_flags.testFlag(UsesScissor);
|
rastDesc.ScissorEnable = m_flags.testFlag(UsesScissor);
|
||||||
rastDesc.MultisampleEnable = rhiD->effectiveSampleCount(m_sampleCount).Count > 1;
|
rastDesc.MultisampleEnable = rhiD->effectiveSampleCount(m_sampleCount).Count > 1;
|
||||||
HRESULT hr = rhiD->dev->CreateRasterizerState(&rastDesc, &rastState);
|
HRESULT hr = rhiD->dev->CreateRasterizerState(&rastDesc, &rastState);
|
||||||
|
Loading…
Reference in New Issue
Block a user