]> git.sesse.net Git - nageru/commitdiff
Fix an issue where interpolation would not work, since something (Qt?) turned off...
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 9 Sep 2018 18:29:14 +0000 (20:29 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 15 Sep 2018 17:39:49 +0000 (19:39 +0200)
flow.cpp

index 882a0b6f235857a3577bfa93b41a45d2ebfcce5a..873bdf294b1143aaf6eec681419419d5c513e844 100644 (file)
--- a/flow.cpp
+++ b/flow.cpp
@@ -797,6 +797,7 @@ void Splat::exec(GLuint image_tex, GLuint bidirectional_flow_tex, GLuint flow_te
        glViewport(0, 0, width, height);
        glDisable(GL_BLEND);
        glEnable(GL_DEPTH_TEST);
+       glDepthMask(GL_TRUE);
        glDepthFunc(GL_LESS);  // We store the difference between I_0 and I_1, where less difference is good. (Default 1.0 is effectively +inf, which always loses.)
 
        fbos.render_to(depth_rb, flow_tex);