Skip to content

Commit

Permalink
renderer: update plane state after user hook
Browse files Browse the repository at this point in the history
Fixes rendering with pl_plane.flipped enabled.
  • Loading branch information
kasper93 authored and haasn committed Sep 16, 2024
1 parent c73132f commit 3cb4d2d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/renderer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1722,6 +1722,9 @@ static bool pass_read_image(struct pass_state *pass)
}

if (pass_hook(pass, &st->img, plane_hook_stages[st->type])) {
st->plane.texture = st->img.tex;
st->plane_w = st->img.w;
st->plane_h = st->img.h;
PL_TRACE(rr, "After user hooks:");
log_plane_info(rr, st);
}
Expand Down

0 comments on commit 3cb4d2d

Please sign in to comment.