]> git.sesse.net Git - nageru/blobdiff - flow.cpp
Fix an issue where interpolation would not work, since something (Qt?) turned off...
[nageru] / 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);