mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-06 10:00:30 +01:00
r300g/swtcl: fix crash when setting vertex buffers
Broken by e73bf3b805.
This commit is contained in:
parent
d4ff72b944
commit
37fd455b21
1 changed files with 3 additions and 0 deletions
|
|
@ -1659,6 +1659,9 @@ static void r300_set_vertex_buffers_swtcl(struct pipe_context* pipe,
|
|||
buffers, start_slot, count);
|
||||
draw_set_vertex_buffers(r300->draw, start_slot, count, buffers);
|
||||
|
||||
if (!buffers)
|
||||
return;
|
||||
|
||||
for (i = 0; i < count; i++) {
|
||||
if (buffers[i].user_buffer) {
|
||||
draw_set_mapped_vertex_buffer(r300->draw, start_slot + i,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue