X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=flow.cpp;h=873bdf294b1143aaf6eec681419419d5c513e844;hb=6175012d6d15e68a59c535a7dec65884d7e1bfa6;hp=882a0b6f235857a3577bfa93b41a45d2ebfcce5a;hpb=4f00412d9a9d5b2d78b0efaa061c1e9ca83afad9;p=nageru diff --git a/flow.cpp b/flow.cpp index 882a0b6..873bdf2 100644 --- 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);