Commit 51cdf229 authored by Niklas Haas's avatar Niklas Haas Committed by Hugo Beauzée-Luyssen
Browse files

libplacebo: correctly handle overlays on flipped framebuffers

This affects OpenGL.
parent 9ae6b001
......@@ -301,6 +301,11 @@ static void PictureRender(vout_display_t *vd, picture_t *pic,
.repr = vlc_placebo_ColorRepr(&r->fmt),
};
if (frame.flipped) {
overlay->rect.y0 = frame.fbo->params.h - overlay->rect.y0;
overlay->rect.y1 = frame.fbo->params.h - overlay->rect.y1;
}
if (!pl_upload_plane(gpu, &overlay->plane, &sys->overlay_tex[i], &subdata)) {
msg_Err(vd, "Failed uploading subpicture region!");
num_regions = i; // stop here
......
Supports Markdown
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