From 3058ce946bcef0008f93c06a0b60c2a80c731d50 Mon Sep 17 00:00:00 2001 From: Colin Date: Tue, 17 Dec 2024 21:04:38 -0500 Subject: [PATCH] Revert sampler to clamp to fix screen artifacts --- src/Deferred.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Deferred.cpp b/src/Deferred.cpp index 7366283ba..b673eedb9 100644 --- a/src/Deferred.cpp +++ b/src/Deferred.cpp @@ -104,9 +104,9 @@ void Deferred::SetupResources() D3D11_SAMPLER_DESC samplerDesc = {}; samplerDesc.Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR; - samplerDesc.AddressU = D3D11_TEXTURE_ADDRESS_WRAP; - samplerDesc.AddressV = D3D11_TEXTURE_ADDRESS_WRAP; - samplerDesc.AddressW = D3D11_TEXTURE_ADDRESS_WRAP; + samplerDesc.AddressU = D3D11_TEXTURE_ADDRESS_CLAMP; + samplerDesc.AddressV = D3D11_TEXTURE_ADDRESS_CLAMP; + samplerDesc.AddressW = D3D11_TEXTURE_ADDRESS_CLAMP; samplerDesc.MaxAnisotropy = 1; samplerDesc.MinLOD = 0; samplerDesc.MaxLOD = D3D11_FLOAT32_MAX;