summaryrefslogtreecommitdiffstats
path: root/video/out/gl_osd.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-03-16 20:10:48 +0100
committerwm4 <wm4@nowhere>2015-03-16 20:22:04 +0100
commit2fe81ce7893e11a54db890a2c3b7eed85262b4c6 (patch)
treebeb17df010c41897550ac0f376c269b437e170cf /video/out/gl_osd.c
parent699fc0e51e4672d567f85a3589a140eda69c9ee2 (diff)
downloadmpv-2fe81ce7893e11a54db890a2c3b7eed85262b4c6.tar.bz2
mpv-2fe81ce7893e11a54db890a2c3b7eed85262b4c6.tar.xz
vo_opengl: move glViewport call closer to draw call
Diffstat (limited to 'video/out/gl_osd.c')
-rw-r--r--video/out/gl_osd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/gl_osd.c b/video/out/gl_osd.c
index 5c203ea626..74074915a2 100644
--- a/video/out/gl_osd.c
+++ b/video/out/gl_osd.c
@@ -375,6 +375,8 @@ void mpgl_osd_draw_part(struct mpgl_osd *ctx, int vp_w, int vp_h, int index)
int div[2];
get_3d_side_by_side(ctx->stereo_mode, div);
+ ctx->gl->Viewport(0, 0, vp_w, abs(vp_h));
+
for (int x = 0; x < div[0]; x++) {
for (int y = 0; y < div[1]; y++) {
struct gl_transform t;