summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-09-16 14:31:15 +0200
committerwm4 <wm4@nowhere>2016-09-16 14:50:05 +0200
commitc47ae06ed80e9493d92924282b417536669ec3d0 (patch)
tree4c09f4f03721ec4869cb057f78898576d790641b /video
parent8716c2e88f9694cf8368132e50a0e778dc055dd1 (diff)
downloadmpv-c47ae06ed80e9493d92924282b417536669ec3d0.tar.bz2
mpv-c47ae06ed80e9493d92924282b417536669ec3d0.tar.xz
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.
Diffstat (limited to 'video')
-rw-r--r--video/out/opengl/video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c
index 4121ff785c..4b17d1ce12 100644
--- a/video/out/opengl/video.c
+++ b/video/out/opengl/video.c
@@ -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)