summaryrefslogtreecommitdiffstatshomepage
path: root/hlsl/prescale.fx
diff options
context:
space:
mode:
Diffstat (limited to 'hlsl/prescale.fx')
-rw-r--r--hlsl/prescale.fx3
1 files changed, 2 insertions, 1 deletions
diff --git a/hlsl/prescale.fx b/hlsl/prescale.fx
index 633b0872d48..6b3dff8d058 100644
--- a/hlsl/prescale.fx
+++ b/hlsl/prescale.fx
@@ -72,7 +72,8 @@ float4 ps_main(PS_INPUT Input) : COLOR
{
float2 RawDims = float2(RawWidth, RawHeight);
float2 TexCoord = Input.TexCoord * RawDims;
- TexCoord -= frac(float2(0.0f, TexCoord.y));
+ TexCoord -= frac(TexCoord);
+ TexCoord += 0.5f;
TexCoord /= RawDims;
float4 Center = tex2D(DiffuseSampler, TexCoord);