mirror of https://github.com/mpv-player/mpv
vo_opengl: fix a cast
Basically, the OpenGL API is crap (it takes an offset as pointer).
This commit is contained in:
parent
1cd11c43ee
commit
c5e5f38563
|
@ -222,7 +222,7 @@ static void gl_vao_enable_attribs(struct gl_vao *vao)
|
|||
|
||||
gl->EnableVertexAttribArray(n);
|
||||
gl->VertexAttribPointer(n, e->num_elems, e->type, e->normalized,
|
||||
vao->stride, (void*)e->offset);
|
||||
vao->stride, (void *)(intptr_t)e->offset);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue