From ae69abc049d746704a3ca5c2a18d3acf2796e275 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Wed, 5 Jun 2019 19:06:33 +0200 Subject: [PATCH] - FXAA_DISCARD should never be enabled. It only works when the output framebuffer is the same as the original. --- src/rendering/hwrenderer/postprocessing/hw_postprocess.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/rendering/hwrenderer/postprocessing/hw_postprocess.cpp b/src/rendering/hwrenderer/postprocessing/hw_postprocess.cpp index 9210899ad..9eb64a1d0 100644 --- a/src/rendering/hwrenderer/postprocessing/hw_postprocess.cpp +++ b/src/rendering/hwrenderer/postprocessing/hw_postprocess.cpp @@ -389,7 +389,6 @@ FString PPFXAA::GetDefines() } const int gatherAlpha = GetMaxVersion() >= 400 ? 1 : 0; - 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 @@ -397,9 +396,8 @@ FString PPFXAA::GetDefines() FString result; result.Format( "#define FXAA_QUALITY__PRESET %i\n" - "#define FXAA_GATHER4_ALPHA %i\n" - "#define FXAA_DISCARD %i\n", - quality, gatherAlpha, discard); + "#define FXAA_GATHER4_ALPHA %i\n", + quality, gatherAlpha); return result; }