GSdx.fx: Fix Border Pass, function should only run when PX_BORDER is enabled/read from the config.

Fixes an issue where external shader broke rendering when enabled if
config wasn't loaded properly.
This commit is contained in:
lightningterror 2020-05-08 14:29:08 +02:00
parent 8bf6ba1440
commit b6e95fea52
1 changed files with 2 additions and 1 deletions

View File

@ -2088,6 +2088,7 @@ float4 DitherPass(float4 color, float2 texcoord)
[PX BORDER CODE SECTION]
------------------------------------------------------------------------------*/
#if PX_BORDER == 1
float4 BorderPass(float4 colorInput, float2 tex)
{
float3 border_color_float = BorderColor / 255.0;
@ -2104,8 +2105,8 @@ float4 BorderPass(float4 colorInput, float2 tex)
#endif
return colorInput;
}
#endif
/*------------------------------------------------------------------------------
[LOTTES CRT CODE SECTION]