Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
dece1417
Commit
dece1417
authored
May 05, 2016
by
Steve Lhomme
Committed by
Jean-Baptiste Kempf
May 07, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
direct3d11: no need for stencils at all
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
5a00dc8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
14 deletions
+0
-14
modules/video_output/win32/direct3d11.c
modules/video_output/win32/direct3d11.c
+0
-14
No files found.
modules/video_output/win32/direct3d11.c
View file @
dece1417
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment