]> git.sesse.net Git - nageru/commitdiff
Add a FIXME on the scissor.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 20 Jul 2018 19:27:32 +0000 (21:27 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 20 Jul 2018 20:17:03 +0000 (22:17 +0200)
flow.cpp

index b66642dbbc0c97cdae7bc769f9264d764dabbad7..1946569b1e21d2f06184deacadfa44b3085c7073 100644 (file)
--- 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);