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
1 changed files with 1 additions and 1 deletions

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