summaryrefslogtreecommitdiffstats
path: root/src/mesa/vbo/vbo_split_copy.c
diff options
context:
space:
mode:
authorMathias Fröhlich <[email protected]>2016-06-17 08:09:05 +0200
committerMathias Fröhlich <[email protected]>2016-07-31 10:05:46 +0200
commitb730960e779c842d27192f812b33686f025431ff (patch)
treea02c9a575e20610cbbe8055c361b507127507948 /src/mesa/vbo/vbo_split_copy.c
parent56c65cd31538bd78b3ad9e516ddcb73438c535c9 (diff)
mesa: Remove set but not used gl_client_array::Stride.
The field is only read for printing today and there it was probably a leftover. Signed-off-by: Mathias Fröhlich <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/vbo/vbo_split_copy.c')
-rw-r--r--src/mesa/vbo/vbo_split_copy.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/vbo/vbo_split_copy.c b/src/mesa/vbo/vbo_split_copy.c
index 084110cd932..daa09c211a1 100644
--- a/src/mesa/vbo/vbo_split_copy.c
+++ b/src/mesa/vbo/vbo_split_copy.c
@@ -161,7 +161,7 @@ dump_draw_info(struct gl_context *ctx,
arrays[j]->Size, arrays[j]->Type, arrays[j]->StrideB);
if (0) {
GLint k = prims[i].start + prims[i].count - 1;
- GLfloat *last = (GLfloat *) (arrays[j]->Ptr + arrays[j]->Stride * k);
+ GLfloat *last = (GLfloat *) (arrays[j]->Ptr + arrays[j]->StrideB * k);
printf(" last: %f %f %f\n",
last[0], last[1], last[2]);
}
@@ -527,7 +527,6 @@ replay_init( struct copy_context *copy )
dst->Size = src->Size;
dst->Type = src->Type;
dst->Format = GL_RGBA;
- dst->Stride = copy->vertex_size;
dst->StrideB = copy->vertex_size;
dst->Ptr = copy->dstbuf + offset;
dst->Normalized = src->Normalized;