From 54cdb214e4d6141b49659cf0c532f39b0727c9ef Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Fri, 24 Feb 2023 17:33:05 +1100 Subject: hlsl: Fixed regression in distortion shader. [Ryan Holtz] --- hlsl/distortion.fx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hlsl/distortion.fx b/hlsl/distortion.fx index 29835df368c..e121cd2ff64 100644 --- a/hlsl/distortion.fx +++ b/hlsl/distortion.fx @@ -284,7 +284,7 @@ float4 ps_main(PS_INPUT Input) : COLOR if (BaseCoord.x < 0.0f - TexelDims.x || BaseCoord.y < 0.0f - TexelDims.y || BaseCoord.x > 1.0f + TexelDims.x || BaseCoord.y > 1.0f + TexelDims.y) { - discard; + return float4(0, 0, 0, 1); } // Color -- cgit v1.2.3