- FXAA_DISCARD should never be enabled. It only works when the output framebuffer is the same as the original.

This commit is contained in:
Magnus Norddahl 2019-06-05 19:06:33 +02:00
parent 4c8eddc5a3
commit ae69abc049

View file

@ -389,7 +389,6 @@ FString PPFXAA::GetDefines()
} }
const int gatherAlpha = GetMaxVersion() >= 400 ? 1 : 0; 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 // TODO: enable FXAA_GATHER4_ALPHA on OpenGL earlier than 4.0
// when GL_ARB_gpu_shader5/GL_NV_gpu_shader5 extensions are supported // when GL_ARB_gpu_shader5/GL_NV_gpu_shader5 extensions are supported
@ -397,9 +396,8 @@ FString PPFXAA::GetDefines()
FString result; FString result;
result.Format( result.Format(
"#define FXAA_QUALITY__PRESET %i\n" "#define FXAA_QUALITY__PRESET %i\n"
"#define FXAA_GATHER4_ALPHA %i\n" "#define FXAA_GATHER4_ALPHA %i\n",
"#define FXAA_DISCARD %i\n", quality, gatherAlpha);
quality, gatherAlpha, discard);
return result; return result;
} }