From 4d29b5b5e7983a7f1cb1185bc55598665b6d9031 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 20244c901..9210899ad 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