Skip to content

Commit

Permalink
- FXAA_DISCARD should never be enabled. It only works when the output…
Browse files Browse the repository at this point in the history
… framebuffer is the same as the original.
  • Loading branch information
dpjudas authored and madame-rachelle committed Jun 7, 2019
1 parent ec172b5 commit 6a4e60e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/rendering/hwrenderer/postprocessing/hw_postprocess.cpp
Expand Up @@ -389,17 +389,15 @@ 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

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;
}
Expand Down

0 comments on commit 6a4e60e

Please sign in to comment.