]> git.sesse.net Git - nageru/commitdiff
Properly release the flow texture; saves 1 ms (!) on FBO creation.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 2 Aug 2018 22:09:20 +0000 (00:09 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 2 Aug 2018 22:09:20 +0000 (00:09 +0200)
flow.cpp

index 4b69c092555d5f6090425798ee06554f44fe0102..512bdaf12e3ff283b07af22ffd40645ae0cebd5b 100644 (file)
--- a/flow.cpp
+++ b/flow.cpp
@@ -1547,6 +1547,7 @@ GLuint Interpolate::exec(GLuint tex0, GLuint tex1, GLuint forward_flow_tex, GLui
                ScopedTimer timer("Blend", &total_timer);
                blend.exec(tex0, tex1, flow_tex, output_tex, width, height, alpha);
        }
+       pool.release_texture(flow_tex);
        total_timer.end();
        timers.print();