]> git.sesse.net Git - nageru/commitdiff
Add another missing clear.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 21 Jul 2018 22:43:35 +0000 (00:43 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 21 Jul 2018 22:43:35 +0000 (00:43 +0200)
flow.cpp

index 6decf73ca673739bfae79a96e3ca6e0a0b69d3df..4f869cba8de3562717fde4487fee93d70e89d0b9 100644 (file)
--- a/flow.cpp
+++ b/flow.cpp
@@ -1024,6 +1024,7 @@ int main(int argc, char **argv)
        GLuint initial_flow_tex;
        glCreateTextures(GL_TEXTURE_2D, 1, &initial_flow_tex);
        glTextureStorage2D(initial_flow_tex, 1, GL_RG16F, 1, 1);
+       glClearTexImage(initial_flow_tex, 0, GL_RG, GL_FLOAT, nullptr);
        int prev_level_width = 1, prev_level_height = 1;
 
        GLuint prev_level_flow_tex = initial_flow_tex;