mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 11:08:03 +02:00
draw: Respect max_indices from the renderer.
This commit is contained in:
parent
37ef7c22ab
commit
3c56280d33
1 changed files with 1 additions and 1 deletions
|
|
@ -437,7 +437,7 @@ struct draw_stage *draw_vbuf_stage( struct draw_context *draw,
|
|||
vbuf->stage.destroy = vbuf_destroy;
|
||||
|
||||
vbuf->render = render;
|
||||
vbuf->max_indices = MAX2(render->max_indices, UNDEFINED_VERTEX_ID-1);
|
||||
vbuf->max_indices = MIN2(render->max_indices, UNDEFINED_VERTEX_ID-1);
|
||||
|
||||
vbuf->indices = (ushort *) align_malloc( vbuf->max_indices *
|
||||
sizeof(vbuf->indices[0]),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue