mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 19:58:09 +02:00
lavapipe: handle null vertex buffers more gracefully
this should propagate down to be handled correctly in llvmpipe Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11723>
This commit is contained in:
parent
937e813d23
commit
95777ab419
1 changed files with 1 additions and 1 deletions
|
|
@ -739,7 +739,7 @@ static void handle_vertex_buffers(struct lvp_cmd_buffer_entry *cmd,
|
|||
int idx = i + vcb->first;
|
||||
|
||||
state->vb[idx].buffer_offset = vcb->offsets[i];
|
||||
state->vb[idx].buffer.resource = vcb->buffers[i]->bo;
|
||||
state->vb[idx].buffer.resource = vcb->buffers[i] ? vcb->buffers[i]->bo : NULL;
|
||||
|
||||
if (vcb->strides) {
|
||||
state->vb[idx].stride = vcb->strides[i];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue