mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
vo_opengl: don't pass negative height to overlay_adjust()
Negative height is used to signal a flipped framebuffer. There's absolutely no reason to pass this down to overlay_adjust(), and only requires implementers to deal with an additional special-case.
This commit is contained in:
@@ -2818,7 +2818,7 @@ void gl_video_resize(struct gl_video *p, int vp_w, int vp_h,
|
||||
mpgl_osd_resize(p->osd, p->osd_rect, p->image_params.stereo_out);
|
||||
|
||||
if (p->hwdec && p->hwdec->driver->overlay_adjust)
|
||||
p->hwdec->driver->overlay_adjust(p->hwdec, vp_w, vp_h, src, dst);
|
||||
p->hwdec->driver->overlay_adjust(p->hwdec, vp_w, abs(vp_h), src, dst);
|
||||
}
|
||||
|
||||
static struct voctrl_performance_entry gl_video_perfentry(struct gl_timer *t)
|
||||
|
||||
Reference in New Issue
Block a user