diff options
author | Aman Gupta <aman@tmm1.net> | 2017-07-10 19:05:26 -0700 |
---|---|---|
committer | Niklas Haas <git@haasn.xyz> | 2017-07-11 04:46:37 +0200 |
commit | 4e93046ddf84f23fb75e497b99f2a8f19b4ee095 (patch) | |
tree | 9096fc2303a27923e24a6937689dd3fe8541725f /video | |
parent | 26f56b5a5d1f8d004d756ee8cc8552ca7de00f34 (diff) | |
download | mpv-4e93046ddf84f23fb75e497b99f2a8f19b4ee095.tar.bz2 mpv-4e93046ddf84f23fb75e497b99f2a8f19b4ee095.tar.xz |
vo_opengl: fix type of glsl variable frame
Diffstat (limited to 'video')
-rw-r--r-- | video/out/opengl/video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c index 1bd9351b9c..4be9f3e1cb 100644 --- a/video/out/opengl/video.c +++ b/video/out/opengl/video.c @@ -1384,7 +1384,7 @@ static void load_shader(struct gl_video *p, struct bstr body) { gl_sc_hadd_bstr(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_i(p->sc, "frame", p->frames_uploaded); gl_sc_uniform_vec2(p->sc, "input_size", (GLfloat[]){(p->src_rect.x1 - p->src_rect.x0) * p->texture_offset.m[0][0], |