From c5e5f385636c910ea8a612b8954082606637f20a Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 29 Jan 2015 21:13:06 +0100 Subject: vo_opengl: fix a cast Basically, the OpenGL API is crap (it takes an offset as pointer). --- video/out/gl_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out') 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); } } -- cgit v1.2.3