From e56a9f8e079421c9808fe1fd65519b7369c7961e Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 2 Aug 2018 17:20:32 +0200 Subject: [PATCH] Fix a GLSL syntax error that tripped up NVIDIA. --- motion_search.frag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/motion_search.frag b/motion_search.frag index 05e901c..136d316 100644 --- a/motion_search.frag +++ b/motion_search.frag @@ -124,7 +124,7 @@ void main() // sum(S^T * (x - y)) = [what we calculated] - (µ1 - µ2) sum(S^T) // // so we can just subtract away the mean difference here. - mean_diff = (warped_sum - template_sum) * (1.0 / (patch_size * patch_size)); + mean_diff = (warped_sum - template_sum) * (1.0 / float(patch_size * patch_size)); du -= grad_sum * mean_diff; if (i == 0) { -- 2.39.5