mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +00:00
- disabled discard in FXAA shader with Vulkan backend
Discard caused graphical corruptions on AMD hardware with Vulkan backend enabled https://forum.zdoom.org/viewtopic.php?t=64230
This commit is contained in:
parent
5c0334e3ce
commit
addcad8ac0
2 changed files with 4 additions and 4 deletions
|
@ -389,6 +389,7 @@ FString PPFXAA::GetDefines()
|
|||
}
|
||||
|
||||
const int gatherAlpha = GetMaxVersion() >= 400 ? 1 : 0;
|
||||
const int discard = screen->IsVulkan() ? 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
|
||||
|
@ -396,8 +397,9 @@ FString PPFXAA::GetDefines()
|
|||
FString result;
|
||||
result.Format(
|
||||
"#define FXAA_QUALITY__PRESET %i\n"
|
||||
"#define FXAA_GATHER4_ALPHA %i\n",
|
||||
quality, gatherAlpha);
|
||||
"#define FXAA_GATHER4_ALPHA %i\n"
|
||||
"#define FXAA_DISCARD %i\n",
|
||||
quality, gatherAlpha, discard);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
|
|
@ -52,8 +52,6 @@ void main()
|
|||
// NVIDIA FXAA 3.11 by TIMOTHY LOTTES
|
||||
//============================================================================
|
||||
|
||||
#define FXAA_DISCARD 1
|
||||
|
||||
#define FXAA_GREEN_AS_LUMA 0
|
||||
|
||||
#define FxaaBool bool
|
||||
|
|
Loading…
Reference in a new issue