Fix missing D3D11 stencil ref value

This commit is contained in:
Wojtek Figat
2024-11-26 15:56:08 +01:00
parent 07aafea5af
commit e3c8d19a9e

View File

@@ -285,7 +285,10 @@ void GPUContextDX11::SetBlendFactor(const Float4& value)
void GPUContextDX11::SetStencilRef(uint32 value)
{
if (CurrentStencilRef != value)
{
CurrentStencilRef = value;
_context->OMSetDepthStencilState(CurrentDepthStencilState, CurrentStencilRef);
}
}
void GPUContextDX11::ResetSR()