From: Steinar H. Gunderson Date: Thu, 2 Aug 2018 15:20:32 +0000 (+0200) Subject: Fix a GLSL syntax error that tripped up NVIDIA. X-Git-Tag: 1.8.0~76^2~151 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=e56a9f8e079421c9808fe1fd65519b7369c7961e;p=nageru Fix a GLSL syntax error that tripped up NVIDIA. --- 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) {