mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
8bf6ba1440
commit
b6e95fea52
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue