mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
draw: fix primitive indexing in the pipeline
spotted by Keith
This commit is contained in:
parent
a192b5eeaf
commit
9cf5e814b9
1 changed files with 4 additions and 2 deletions
|
|
@ -371,14 +371,16 @@ void draw_pipeline_run_linear( struct draw_context *draw,
|
|||
start += prim_info->primitive_lengths[i], i++)
|
||||
{
|
||||
unsigned count = prim_info->primitive_lengths[i];
|
||||
char *verts = ((char*)vert_info->verts) +
|
||||
(start * vert_info->stride);
|
||||
|
||||
draw->pipeline.verts = (char *)&vert_info->verts[start];
|
||||
draw->pipeline.verts = verts;
|
||||
draw->pipeline.vertex_stride = vert_info->stride;
|
||||
draw->pipeline.vertex_count = count;
|
||||
|
||||
pipe_run_linear(draw,
|
||||
prim_info->prim,
|
||||
&vert_info->verts[start],
|
||||
(struct vertex_header*)verts,
|
||||
vert_info->stride,
|
||||
vert_info->count);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue