diff options
author | wm4 <wm4@nowhere> | 2015-01-29 21:13:06 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-01-29 21:13:06 +0100 |
commit | c5e5f385636c910ea8a612b8954082606637f20a (patch) | |
tree | 0e8df94ea0e67c93ea95ab5198c8967e9e3b2bcf /video | |
parent | 1cd11c43ee855eecc49fe43853450854ffc8b900 (diff) | |
download | mpv-c5e5f385636c910ea8a612b8954082606637f20a.tar.bz2 mpv-c5e5f385636c910ea8a612b8954082606637f20a.tar.xz |
vo_opengl: fix a cast
Basically, the OpenGL API is crap (it takes an offset as pointer).
Diffstat (limited to 'video')
-rw-r--r-- | video/out/gl_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/gl_utils.c b/video/out/gl_utils.c index cf3a24cc48..80ec840582 100644 --- a/video/out/gl_utils.c +++ b/video/out/gl_utils.c @@ -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); } } |