From d6b00021950a03fc6ff39e63f4c079b956c80c92 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 7 Oct 2016 15:09:20 -0600 Subject: [PATCH] mesa: remove needless cast in update_array() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Mathias Fröhlich --- src/mesa/main/varray.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index 6c41a5c4e67..9acd8686621 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -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; -- 2.30.2