From: Steinar H. Gunderson Date: Sun, 9 Sep 2018 18:29:14 +0000 (+0200) Subject: Fix an issue where interpolation would not work, since something (Qt?) turned off... X-Git-Tag: 1.8.0~76^2~115 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=6175012d6d15e68a59c535a7dec65884d7e1bfa6;p=nageru Fix an issue where interpolation would not work, since something (Qt?) turned off depth writing. --- 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);