From: Steinar H. Gunderson Date: Thu, 2 Aug 2018 22:09:20 +0000 (+0200) Subject: Properly release the flow texture; saves 1 ms (!) on FBO creation. X-Git-Tag: 1.8.0~76^2~143 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=21043ad8170a7bd750080badbcb2763352fd6243;p=nageru Properly release the flow texture; saves 1 ms (!) on FBO creation. --- diff --git a/flow.cpp b/flow.cpp index 4b69c09..512bdaf 100644 --- 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();