[vlc-devel] [PATCH 2/5] direct3d11: no need for stencils at all

Steve Lhomme robux4 at videolabs.io
Thu May 5 11:54:19 CEST 2016


---
 modules/video_output/win32/direct3d11.c | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 4750f8e..eb912bb 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1229,20 +1229,6 @@ static int Direct3D11CreateResources(vout_display_t *vd, video_format_t *fmt)
     */
     D3D11_DEPTH_STENCIL_DESC stencilDesc;
     ZeroMemory(&stencilDesc, sizeof(stencilDesc));
-    stencilDesc.DepthEnable                  = FALSE;
-    stencilDesc.StencilEnable                = TRUE;
-    stencilDesc.DepthWriteMask               = D3D11_DEPTH_WRITE_MASK_ALL;
-    stencilDesc.DepthFunc                    = D3D11_COMPARISON_LESS;
-    stencilDesc.StencilReadMask              = 0xFF;
-    stencilDesc.StencilWriteMask             = 0xFF;
-    stencilDesc.FrontFace.StencilFailOp      = D3D11_STENCIL_OP_KEEP;
-    stencilDesc.FrontFace.StencilDepthFailOp = D3D11_STENCIL_OP_INCR;
-    stencilDesc.FrontFace.StencilPassOp      = D3D11_STENCIL_OP_KEEP;
-    stencilDesc.FrontFace.StencilFunc        = D3D11_COMPARISON_ALWAYS;
-    stencilDesc.BackFace.StencilFailOp       = D3D11_STENCIL_OP_KEEP;
-    stencilDesc.BackFace.StencilDepthFailOp  = D3D11_STENCIL_OP_DECR;
-    stencilDesc.BackFace.StencilPassOp       = D3D11_STENCIL_OP_KEEP;
-    stencilDesc.BackFace.StencilFunc         = D3D11_COMPARISON_ALWAYS;
 
     ID3D11DepthStencilState *pDepthStencilState;
     hr = ID3D11Device_CreateDepthStencilState(sys->d3ddevice, &stencilDesc, &pDepthStencilState );
-- 
2.7.0



More information about the vlc-devel mailing list