From fccef7a55681755546fdd5f943d04926b566473c Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Mon, 14 Sep 2015 01:12:43 +0200 Subject: [PATCH] Help the compiler out a tiny bit. --- resample_effect.frag | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resample_effect.frag b/resample_effect.frag index 015bc98..26838dc 100644 --- a/resample_effect.frag +++ b/resample_effect.frag @@ -43,9 +43,9 @@ vec4 PREFIX(do_sample)(vec2 tc, int i) vec2 sample = tex2D(PREFIX(sample_tex), sample_tc).rg; #if DIRECTION_VERTICAL - tc.y = sample.g + floor(sample_tc.y) * PREFIX(slice_height) + PREFIX(whole_pixel_offset); + tc.y = sample.g + (floor(sample_tc.y) * PREFIX(slice_height) + PREFIX(whole_pixel_offset)); #else - tc.x = sample.g + floor(sample_tc.y) * PREFIX(slice_height) + PREFIX(whole_pixel_offset); + tc.x = sample.g + (floor(sample_tc.y) * PREFIX(slice_height) + PREFIX(whole_pixel_offset)); #endif return vec4(sample.r) * INPUT(tc); } -- 2.39.2