From 63b44ec5d415504ce3f7d72e1edf8755ad071f8e Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Tue, 4 Jun 2019 12:43:08 +0300 Subject: [PATCH] - limited disabling of FXAA discard to Vulkan on AMD hardware --- src/rendering/hwrenderer/postprocessing/hw_postprocess.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rendering/hwrenderer/postprocessing/hw_postprocess.cpp b/src/rendering/hwrenderer/postprocessing/hw_postprocess.cpp index 20244c9018..9210899ad2 100644 --- a/src/rendering/hwrenderer/postprocessing/hw_postprocess.cpp +++ b/src/rendering/hwrenderer/postprocessing/hw_postprocess.cpp @@ -389,7 +389,7 @@ FString PPFXAA::GetDefines() } const int gatherAlpha = GetMaxVersion() >= 400 ? 1 : 0; - const int discard = screen->IsVulkan() ? 0 : 1; + const int discard = (screen->IsVulkan() && strstr(screen->vendorstring, "AMD") != nullptr) ? 0 : 1; // TODO: enable FXAA_GATHER4_ALPHA on OpenGL earlier than 4.0 // when GL_ARB_gpu_shader5/GL_NV_gpu_shader5 extensions are supported