diff --git a/Source/Engine/GraphicsDevice/DirectX/DX11/GPUContextDX11.cpp b/Source/Engine/GraphicsDevice/DirectX/DX11/GPUContextDX11.cpp index 029012fa8..0ff1392ec 100644 --- a/Source/Engine/GraphicsDevice/DirectX/DX11/GPUContextDX11.cpp +++ b/Source/Engine/GraphicsDevice/DirectX/DX11/GPUContextDX11.cpp @@ -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()