From 3f67e1870dbd5be74ae2f09eaed0eeadce6abd15 Mon Sep 17 00:00:00 2001 From: hizzlekizzle Date: Sat, 23 Jul 2022 07:45:56 -0500 Subject: [PATCH] fix #255 works around rounding differences on different GPUs/drivers --- misc/bob-deinterlacing.slang | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/bob-deinterlacing.slang b/misc/bob-deinterlacing.slang index a1dd1e8..b0d004e 100644 --- a/misc/bob-deinterlacing.slang +++ b/misc/bob-deinterlacing.slang @@ -55,7 +55,7 @@ void main() { // snap to the center of the underlying texel vec2 uv = vTexCoord * params.SourceSize.xy - 0.5; - uv = (floor(uv) + 0.5) * params.SourceSize.zw; + uv = (floor(uv) + 0.5001) * params.SourceSize.zw; // go ahead and sample the texture and early return if not interlaced vec4 current = texture(Source, uv);