support filter_linear in retroshaders

This commit is contained in:
zeromus 2014-06-12 08:10:14 +00:00
parent eeff15b099
commit d2ea92d254
1 changed files with 7 additions and 0 deletions

View File

@ -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();
}
}