From beacd059254a80b7f9f51dacc12620c6cdbdd2cf Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Sat, 2 Mar 2024 23:10:52 -0800 Subject: [PATCH] fix BasicStencil --- BasicStencil/BasicStencilGame.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/BasicStencil/BasicStencilGame.cs b/BasicStencil/BasicStencilGame.cs index ea30b1d..9a635e7 100644 --- a/BasicStencil/BasicStencilGame.cs +++ b/BasicStencil/BasicStencilGame.cs @@ -29,26 +29,26 @@ namespace MoonWorks.Test pipelineCreateInfo.DepthStencilState = new DepthStencilState { StencilTestEnable = true, - StencilState = new StencilOpState + FrontStencilState = new StencilOpState { - Reference = 1, - WriteMask = 0xFF, CompareOp = CompareOp.Never, FailOp = StencilOp.Replace, - } + }, + Reference = 1, + WriteMask = 0xFF }; maskerPipeline = new GraphicsPipeline(GraphicsDevice, pipelineCreateInfo); pipelineCreateInfo.DepthStencilState = new DepthStencilState { StencilTestEnable = true, - StencilState = new StencilOpState + FrontStencilState = new StencilOpState { - Reference = 0, - CompareMask = 0xFF, - WriteMask = 0, CompareOp = CompareOp.Equal, - } + }, + Reference = 0, + CompareMask = 0xFF, + WriteMask = 0 }; maskeePipeline = new GraphicsPipeline(GraphicsDevice, pipelineCreateInfo);