- limited disabling of FXAA discard to Vulkan on AMD hardware

This commit is contained in:
alexey.lysiuk 2019-06-04 12:43:08 +03:00 committed by Rachael Alexanderson
parent 3f90620940
commit 63b44ec5d4

View file

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