From 188a1f1416e2b4326f5fd23ca6867357ad066200 Mon Sep 17 00:00:00 2001 From: lightningterror Date: Wed, 1 Aug 2018 22:47:57 +0200 Subject: [PATCH] GSdx-d3d: Drop an useless min in FS - port from GL. Commit: https://github.com/PCSX2/pcsx2/commit/a1957a685d810f8707f03c1fdcbe805f624a1268 GPU will clamp color anyway. It reduces the number of instruction of 25% (4->3). --- plugins/GSdx/res/merge.fx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/GSdx/res/merge.fx b/plugins/GSdx/res/merge.fx index 4d8236b11c..04e2f14e0c 100644 --- a/plugins/GSdx/res/merge.fx +++ b/plugins/GSdx/res/merge.fx @@ -18,7 +18,7 @@ struct PS_INPUT float4 ps_main0(PS_INPUT input) : SV_Target0 { float4 c = Texture.Sample(Sampler, input.t); - c.a = min(c.a * 2, 1); + c.a *= 2.0f; return c; }