From 791b9c40242a8e3d3f46e5738ccbe4412c9334a1 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Thu, 28 Sep 2017 12:50:45 +0200 Subject: 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. --- video/out/gpu/video.c | 4 ++-- 1 file 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, -- cgit v1.2.3