vlc | branch: master | Steve Lhomme <[email protected]> | Thu May 5 11:54:19 2016 +0200| [dece14174558b9d441fedbe2ff5212c6557cddbc] | committer: Jean-Baptiste Kempf
direct3d11: no need for stencils at all Signed-off-by: Jean-Baptiste Kempf <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dece14174558b9d441fedbe2ff5212c6557cddbc --- 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 ); _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
