- 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 committed by Rachael Alexanderson
parent ec172b50e5
commit 6a4e60ef71

View file

@ -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;
}