Mesa (master): mesa: remove needless cast in update_array()
Brian Paul
brianp at kemper.freedesktop.org
Fri Oct 14 00:37:39 UTC 2016
Module: Mesa
Branch: master
Commit: d6b00021950a03fc6ff39e63f4c079b956c80c92
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d6b00021950a03fc6ff39e63f4c079b956c80c92
Author: Brian Paul <brianp at vmware.com>
Date: Fri Oct 7 15:09:20 2016 -0600
mesa: remove needless cast in update_array()
Reviewed-by: Mathias Fröhlich <mathias.froehlich at web.de>
---
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 6c41a5c..9acd868 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;
More information about the mesa-commit
mailing list