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:
wm4
2016-09-16 14:31:15 +02:00
parent 8716c2e88f
commit c47ae06ed8

View File

@@ -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)