From f49e20bdb5bc1adefccff4a031cc13d80bb3321a Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Sat, 24 Jul 2021 16:23:55 +0200 Subject: [PATCH] Revert unneeded and breaking change from D3D11 context state clearing Ref: f5a6a1823295d41aaad32d70f9f5ae61318ad760 --- Source/Engine/GraphicsDevice/DirectX/DX11/GPUContextDX11.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Engine/GraphicsDevice/DirectX/DX11/GPUContextDX11.cpp b/Source/Engine/GraphicsDevice/DirectX/DX11/GPUContextDX11.cpp index 0998ac4d6..5d1efa5e7 100644 --- a/Source/Engine/GraphicsDevice/DirectX/DX11/GPUContextDX11.cpp +++ b/Source/Engine/GraphicsDevice/DirectX/DX11/GPUContextDX11.cpp @@ -647,6 +647,7 @@ void GPUContextDX11::ClearState() FlushState(); +#if 0 _context->ClearState(); ID3D11SamplerState* samplers[] = { @@ -661,6 +662,7 @@ void GPUContextDX11::ClearState() _context->DSSetSamplers(0, ARRAY_COUNT(samplers), samplers); _context->PSSetSamplers(0, ARRAY_COUNT(samplers), samplers); _context->CSSetSamplers(0, ARRAY_COUNT(samplers), samplers); +#endif } void GPUContextDX11::FlushState()