mesa: remove needless cast in update_array()
authorBrian Paul <brianp@vmware.com>
Fri, 7 Oct 2016 21:09:20 +0000 (15:09 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 13 Oct 2016 23:38:49 +0000 (17:38 -0600)
Reviewed-by: Mathias Fröhlich <mathias.froehlich@web.de>
src/mesa/main/varray.c

index 6c41a5c4e67b770d5c357752ec1c0d3d390d76af..9acd868662129a3b7fbc15d27a0a37b502397c38 100644 (file)
@@ -527,7 +527,7 @@ update_array(struct gl_context *ctx,
    /* The Stride and Ptr fields are not set by update_array_format() */
    array = &vao->VertexAttrib[attrib];
    array->Stride = stride;
-   array->Ptr = (const GLvoid *) ptr;
+   array->Ptr = ptr;
 
    /* Update the vertex buffer binding */
    effectiveStride = stride != 0 ? stride : array->_ElementSize;