mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-21 14:23:02 +01:00
Ignore stencil ref in bstencil param. Avoids assert in StateCacheT:add when D3D11 deduplicates identical ID3D11DepthStencilState s (#1391)
This commit is contained in:
committed by
Branimir Karadžić
parent
08e2b86fdf
commit
8b1e3cf8cf
@@ -2749,7 +2749,7 @@ namespace bgfx { namespace d3d11
|
||||
|
||||
uint32_t fstencil = unpackStencil(0, _stencil);
|
||||
uint32_t ref = (fstencil&BGFX_STENCIL_FUNC_REF_MASK)>>BGFX_STENCIL_FUNC_REF_SHIFT;
|
||||
_stencil &= packStencil(~BGFX_STENCIL_FUNC_REF_MASK, BGFX_STENCIL_MASK);
|
||||
_stencil &= packStencil(~BGFX_STENCIL_FUNC_REF_MASK, ~BGFX_STENCIL_FUNC_REF_MASK);
|
||||
|
||||
bx::HashMurmur2A murmur;
|
||||
murmur.begin();
|
||||
|
||||
Reference in New Issue
Block a user