[vlc-commits] direct3d11: no need for stencils at all
Steve Lhomme
git at videolan.org
Sat May 7 20:25:23 CEST 2016
vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | 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 <jb at videolan.org>
> 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 );
More information about the vlc-commits
mailing list