From d2ea92d254cbe26ee0017dbfcaaa68db697007f2 Mon Sep 17 00:00:00 2001 From: zeromus Date: Thu, 12 Jun 2014 08:10:14 +0000 Subject: [PATCH] support filter_linear in retroshaders --- BizHawk.Client.EmuHawk/DisplayManager/Filters/Retro.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/BizHawk.Client.EmuHawk/DisplayManager/Filters/Retro.cs b/BizHawk.Client.EmuHawk/DisplayManager/Filters/Retro.cs index b528d36836..bd929f01af 100644 --- a/BizHawk.Client.EmuHawk/DisplayManager/Filters/Retro.cs +++ b/BizHawk.Client.EmuHawk/DisplayManager/Filters/Retro.cs @@ -266,7 +266,14 @@ namespace BizHawk.Client.EmuHawk.Filters var outDisposition = FindOutput().SurfaceDisposition; var input = InputTexture; + if (SP.InputFilterLinear) + InputTexture.SetFilterLinear(); + else + InputTexture.SetFilterNearest(); RSC.Shaders[RSI].Run(input, input.Size, OutputSize, InputTexture.IsUpsideDown); + + //maintain invariant.. i think. + InputTexture.SetFilterNearest(); } }