From 5393e4ce5628fdfc30b15189bd36067b2ce2d8bc Mon Sep 17 00:00:00 2001 From: cdozdil Date: Thu, 4 Apr 2024 17:16:35 +0300 Subject: [PATCH] ue5 fix2 --- CyberXeSS/backends/xess/XeSSFeature_Dx11.cpp | 12 ++++++------ CyberXeSS/backends/xess/XeSSFeature_Dx12.cpp | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/CyberXeSS/backends/xess/XeSSFeature_Dx11.cpp b/CyberXeSS/backends/xess/XeSSFeature_Dx11.cpp index 9e89a4a2..3838da20 100644 --- a/CyberXeSS/backends/xess/XeSSFeature_Dx11.cpp +++ b/CyberXeSS/backends/xess/XeSSFeature_Dx11.cpp @@ -123,12 +123,12 @@ bool XeSSFeatureDx11::Evaluate(ID3D11DeviceContext* InDeviceContext, const NVSDK GetRenderResolution(InParameters, ¶ms.inputWidth, ¶ms.inputHeight); - // UE5 weird color fix2 - //if (false && Config::Instance()->NVNGX_Engine == NVSDK_NGX_ENGINE_TYPE_UNREAL && Config::Instance()->NVNGX_EngineVersion5) - //{ - // params.inputWidth -= (params.inputWidth % 2); - // params.inputHeight -= (params.inputHeight % 2); - //} + // UE5 weird color fix2 + if (Config::Instance()->NVNGX_Engine == NVSDK_NGX_ENGINE_TYPE_UNREAL && Config::Instance()->NVNGX_EngineVersion5) + { + params.inputWidth -= (params.inputWidth % 2); + params.inputHeight -= (params.inputHeight % 2); + } auto sharpness = GetSharpness(InParameters); diff --git a/CyberXeSS/backends/xess/XeSSFeature_Dx12.cpp b/CyberXeSS/backends/xess/XeSSFeature_Dx12.cpp index 1527c422..42b50d0a 100644 --- a/CyberXeSS/backends/xess/XeSSFeature_Dx12.cpp +++ b/CyberXeSS/backends/xess/XeSSFeature_Dx12.cpp @@ -79,12 +79,12 @@ bool XeSSFeatureDx12::Evaluate(ID3D12GraphicsCommandList* InCommandList, const N GetRenderResolution(InParameters, ¶ms.inputWidth, ¶ms.inputHeight); - // UE5 weird color fix2 - not helped :/ - //if (Config::Instance()->NVNGX_Engine == NVSDK_NGX_ENGINE_TYPE_UNREAL && Config::Instance()->NVNGX_EngineVersion5) - //{ - // params.inputWidth += (params.inputWidth % 2); - // params.inputHeight += (params.inputHeight % 2); - //} + // UE5 weird color fix2 + if (Config::Instance()->NVNGX_Engine == NVSDK_NGX_ENGINE_TYPE_UNREAL && Config::Instance()->NVNGX_EngineVersion5) + { + params.inputWidth -= (params.inputWidth % 2); + params.inputHeight -= (params.inputHeight % 2); + } auto sharpness = GetSharpness(InParameters);