Ignore stencil ref in bstencil param. Avoids assert in StateCacheT:add when D3D11 deduplicates identical ID3D11DepthStencilState s (#1391)

This commit is contained in:
MaulingMonkey
2018-05-16 08:43:26 -07:00
committed by Branimir Karadžić
parent 08e2b86fdf
commit 8b1e3cf8cf
4 changed files with 4 additions and 4 deletions

View File

@@ -2647,7 +2647,7 @@ namespace bgfx { namespace d3d12
| BGFX_STATE_PT_MASK
;
_stencil &= packStencil(~BGFX_STENCIL_FUNC_REF_MASK, BGFX_STENCIL_MASK);
_stencil &= packStencil(~BGFX_STENCIL_FUNC_REF_MASK, ~BGFX_STENCIL_FUNC_REF_MASK);
VertexDecl decl;
bx::memCopy(&decl, _vertexDecls[0], sizeof(VertexDecl) );