1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-17 04:58:06 +00:00

vo_opengl: fix a cast

Basically, the OpenGL API is crap (it takes an offset as pointer).
This commit is contained in:
wm4 2015-01-29 21:13:06 +01:00
parent 1cd11c43ee
commit c5e5f38563

View File

@ -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);
}
}