mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 20:21:26 +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
ec172b50e5
commit
6a4e60ef71
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 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
|
// 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
|
||||||
|
@ -397,9 +396,8 @@ FString PPFXAA::GetDefines()
|
||||||
FString result;
|
FString result;
|
||||||
result.Format(
|
result.Format(
|
||||||
"#define FXAA_QUALITY__PRESET %i\n"
|
"#define FXAA_QUALITY__PRESET %i\n"
|
||||||
"#define FXAA_GATHER4_ALPHA %i\n"
|
"#define FXAA_GATHER4_ALPHA %i\n",
|
||||||
"#define FXAA_DISCARD %i\n",
|
quality, gatherAlpha);
|
||||||
quality, gatherAlpha, discard);
|
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue