From a5e20a8fd1de446d2948c500c95cf65b88a36687 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Fri, 17 Jan 2020 05:55:38 -0300 Subject: Add sampler border color support on the GPU (#893) --- Ryujinx.Graphics.Gpu/Image/Sampler.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Ryujinx.Graphics.Gpu/Image/Sampler.cs') diff --git a/Ryujinx.Graphics.Gpu/Image/Sampler.cs b/Ryujinx.Graphics.Gpu/Image/Sampler.cs index 23c6160e..45f5f519 100644 --- a/Ryujinx.Graphics.Gpu/Image/Sampler.cs +++ b/Ryujinx.Graphics.Gpu/Image/Sampler.cs @@ -30,7 +30,11 @@ namespace Ryujinx.Graphics.Gpu.Image CompareMode compareMode = descriptor.UnpackCompareMode(); CompareOp compareOp = descriptor.UnpackCompareOp(); - ColorF color = new ColorF(0, 0, 0, 0); + ColorF color = new ColorF( + descriptor.BorderColorR, + descriptor.BorderColorG, + descriptor.BorderColorB, + descriptor.BorderColorA); float minLod = descriptor.UnpackMinLod(); float maxLod = descriptor.UnpackMaxLod(); -- cgit v1.2.3