From: Steinar H. Gunderson Date: Fri, 20 Jul 2018 19:27:32 +0000 (+0200) Subject: Add a FIXME on the scissor. X-Git-Tag: 1.8.0~76^2~216 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=d6cb36dd1f71c55cb70baf8cafd71bad5e48a96d;p=nageru Add a FIXME on the scissor. --- diff --git a/flow.cpp b/flow.cpp index b66642d..1946569 100644 --- a/flow.cpp +++ b/flow.cpp @@ -583,9 +583,12 @@ void ComputeSmoothness::exec(GLuint flow_tex, GLuint diff_flow_tex, GLuint smoot glViewport(0, 0, level_width, level_height); // Make sure the smoothness on the right and upper borders is zero. - // We could have done this by making a (W-1)x(H-1) texture instead + // We could have done this by making (W-1)xH and Wx(H-1) textures instead // (we're sampling smoothness with all-zero border color), but we'd // have to adjust the sampling coordinates, which is annoying. + // + // FIXME: We shouldn't scissor width for horizontal, + // and we shouldn't scissor height for vertical glScissor(0, 0, level_width - 1, level_height - 1); glEnable(GL_SCISSOR_TEST);