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

renderer: refactor pl_render_target.dst_rect

This is now pl_rect2df instead of pl_rect2d, to make it easier to use
the pl_rect2df_aspect* series of functions, especially without requiring
the hacky rounding integer versions of them. Delete those and add some
needed helper functions as well.

Rewrite the fix_rects code to crop `src_rect` for any fractional
offset in the `dst_rect`, and also for regions of the `dst_rect` that
lie outside the target fbo.

Also fix a bug in the img->w/h calculation for cropped planes.
parent 87ccba7d
No related branches found
No related tags found
1 merge request!97renderer: refactor pl_render_target.dst_rect
Pipeline #17758 passed with stages
in 6 minutes and 59 seconds
Loading
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