Commit 2d2aafff authored by Niklas Haas's avatar Niklas Haas
Browse files

renderer: fix memory leak

Introduced by 8ef0f369, the `psh` plane shader needs to be aborted
even on a successful subpass merge.

Maybe this API should be redesigned. Oh well.

Fixes #130
parent c238c514
Pipeline #77457 passed with stages
in 7 minutes and 34 seconds
......@@ -1261,10 +1261,9 @@ static bool pass_read_image(struct pl_renderer *rr, struct pass_state *pass,
});
ident_t sub = sh_subpass(sh, psh);
if (!sub) {
pl_dispatch_abort(rr->dp, &psh);
pl_dispatch_abort(rr->dp, &psh);
if (!sub)
break; // skip merging
}
GLSL("tmp = %s(); \n", sub);
for (int jc = 0; jc < stj->img.comps; jc++) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment