summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2017-09-28 12:50:45 +0200
committerNiklas Haas <git@haasn.xyz>2017-09-28 12:50:45 +0200
commit791b9c40242a8e3d3f46e5738ccbe4412c9334a1 (patch)
tree65f715ec2a611567ad90f5797b2c4db91c32eee2
parenta65abe2447d0a0ca6301ef2ec23e3d4e697831ad (diff)
downloadmpv-791b9c40242a8e3d3f46e5738ccbe4412c9334a1.tar.bz2
mpv-791b9c40242a8e3d3f46e5738ccbe4412c9334a1.tar.xz
vo_gpu: set the correct number of vertex attribs
This was always set to the length of the VAO, but it should have been set to the number of vertex attribs actually in use for this frame. No idea how that managed to survive the test framework on nvidia/linux, but ANGLE caught it.
-rw-r--r--video/out/gpu/video.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/gpu/video.c b/video/out/gpu/video.c
index fd0ac25bbf..21fb13637a 100644
--- a/video/out/gpu/video.c
+++ b/video/out/gpu/video.c
@@ -1197,8 +1197,8 @@ static struct mp_pass_perf render_pass_quad(struct gl_video *p,
&p->tmp_vertex[num_vertex_attribs * 1],
vertex_stride);
- return gl_sc_dispatch_draw(p->sc, fbo.tex, p->vao, p->vao_len, vertex_stride,
- p->tmp_vertex, num_vertices);
+ return gl_sc_dispatch_draw(p->sc, fbo.tex, p->vao, num_vertex_attribs,
+ vertex_stride, p->tmp_vertex, num_vertices);
}
static void finish_pass_fbo(struct gl_video *p, struct ra_fbo fbo,