summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-29 21:13:06 +0100
committerwm4 <wm4@nowhere>2015-01-29 21:13:06 +0100
commitc5e5f385636c910ea8a612b8954082606637f20a (patch)
tree0e8df94ea0e67c93ea95ab5198c8967e9e3b2bcf
parent1cd11c43ee855eecc49fe43853450854ffc8b900 (diff)
downloadmpv-c5e5f385636c910ea8a612b8954082606637f20a.tar.bz2
mpv-c5e5f385636c910ea8a612b8954082606637f20a.tar.xz
vo_opengl: fix a cast
Basically, the OpenGL API is crap (it takes an offset as pointer).
-rw-r--r--video/out/gl_utils.c2
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);
}
}