]> git.sesse.net Git - nageru/commitdiff
Fix a NaN issue on Intel.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 3 Aug 2018 19:02:34 +0000 (21:02 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 3 Aug 2018 19:02:34 +0000 (21:02 +0200)
flow.cpp

index 3f3ff90ee6da46af401cf4ec636fc1581fd021bd..620b511a19175a185d44cbedb2628c1ac7fc509a 100644 (file)
--- a/flow.cpp
+++ b/flow.cpp
@@ -460,7 +460,7 @@ void MotionSearch::exec(GLuint tex0_view, GLuint tex1_view, GLuint grad0_tex, GL
        glUseProgram(motion_search_program);
 
        bind_sampler(motion_search_program, uniform_image1_tex, 1, tex1_view, linear_sampler);
-       bind_sampler(motion_search_program, uniform_grad0_tex, 2, grad0_tex, linear_sampler);
+       bind_sampler(motion_search_program, uniform_grad0_tex, 2, grad0_tex, nearest_sampler);
        bind_sampler(motion_search_program, uniform_flow_tex, 3, flow_tex, linear_sampler);
 
        glProgramUniform2f(motion_search_program, uniform_inv_image_size, 1.0f / level_width, 1.0f / level_height);