summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/video.c
diff options
context:
space:
mode:
authorigv <igv@users.noreply.github.com>2016-02-22 23:07:04 +0200
committerwm4 <wm4@nowhere>2016-02-22 22:32:49 +0100
commit935c8402bc76107b7f6d2d97e9d2d38a5924fb6c (patch)
tree7482561d4c3aafe5b2d2a196860271d354ceacad /video/out/opengl/video.c
parentebc341ddd4017ecdd738d93081b0e94d1d9d386a (diff)
downloadmpv-935c8402bc76107b7f6d2d97e9d2d38a5924fb6c.tar.bz2
mpv-935c8402bc76107b7f6d2d97e9d2d38a5924fb6c.tar.xz
vo_opengl: set the correct size of the input image
Diffstat (limited to 'video/out/opengl/video.c')
-rw-r--r--video/out/opengl/video.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c
index b4b5ac4703..db83067357 100644
--- a/video/out/opengl/video.c
+++ b/video/out/opengl/video.c
@@ -984,8 +984,8 @@ static void load_shader(struct gl_video *p, const char *body)
gl_sc_hadd(p->sc, body);
gl_sc_uniform_f(p->sc, "random", (double)av_lfg_get(&p->lfg) / UINT32_MAX);
gl_sc_uniform_f(p->sc, "frame", p->frames_uploaded);
- gl_sc_uniform_vec2(p->sc, "image_size", (GLfloat[]){p->texture_w,
- p->texture_h});
+ gl_sc_uniform_vec2(p->sc, "image_size", (GLfloat[]){p->image_params.w,
+ p->image_params.h});
}
static const char *get_custom_shader_fn(struct gl_video *p, const char *body)