diff options
Diffstat (limited to 'src/mesa/vbo/vbo_save_draw.c')
-rw-r--r-- | src/mesa/vbo/vbo_save_draw.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/vbo/vbo_save_draw.c b/src/mesa/vbo/vbo_save_draw.c index f5c4a900b39..ddf911700f8 100644 --- a/src/mesa/vbo/vbo_save_draw.c +++ b/src/mesa/vbo/vbo_save_draw.c @@ -240,8 +240,11 @@ loopback_vertex_list(struct gl_context *ctx, list->vertex_store->bufferobj, MAP_INTERNAL); + unsigned buffer_offset = + aligned_vertex_buffer_offset(list) ? 0 : list->buffer_offset; + vbo_loopback_vertex_list(ctx, - (const GLfloat *)(buffer + list->buffer_offset), + (const GLfloat *) (buffer + buffer_offset), list->attrsz, list->prims, list->prim_count, |