mirror of
https://github.com/mpv-player/mpv
synced 2024-12-18 21:06:00 +00:00
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.
This commit is contained in:
parent
a65abe2447
commit
791b9c4024
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user