- 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
parent dc8a944382
commit 4d29b5b5e7

View file

@ -389,7 +389,7 @@ FString PPFXAA::GetDefines()
} }
const int gatherAlpha = GetMaxVersion() >= 400 ? 1 : 0; 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 // 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