Skip to content
Snippets Groups Projects
Commit 61d0d5c3 authored by Niklas Haas's avatar Niklas Haas
Browse files

renderer: don't crash when img_tex fails

Ensure `img` is always in a valid state, even on failure.
parent c2400492
No related branches found
No related tags found
No related merge requests found
...@@ -332,6 +332,7 @@ static const struct pl_tex *img_tex(struct pass_state *pass, struct img *img) ...@@ -332,6 +332,7 @@ static const struct pl_tex *img_tex(struct pass_state *pass, struct img *img)
if (!ok) { if (!ok) {
PL_ERR(rr, "Failed dispatching intermediate pass!"); PL_ERR(rr, "Failed dispatching intermediate pass!");
img->sh = pl_dispatch_begin(rr->dp);
return NULL; return NULL;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment