mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 06:53:58 +00:00
- FXAA_DISCARD should never be enabled. It only works when the output framebuffer is the same as the original.
This commit is contained in:
parent
4c8eddc5a3
commit
ae69abc049
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue