Skip to content

Commit

Permalink
- limited disabling of FXAA discard to Vulkan on AMD hardware
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk authored and madame-rachelle committed Jun 7, 2019
1 parent 3f90620 commit 63b44ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rendering/hwrenderer/postprocessing/hw_postprocess.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 63b44ec

Please sign in to comment.