mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-16 19:48:20 +02:00
r300g: skip null vertex buffers
This commit is contained in:
parent
7b38f946a0
commit
951d89ae3a
1 changed files with 6 additions and 1 deletions
|
|
@ -1039,7 +1039,6 @@ r300_create_sampler_view(struct pipe_context *pipe,
|
|||
return view;
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
r300_sampler_view_destroy(struct pipe_context *pipe,
|
||||
struct pipe_sampler_view *view)
|
||||
|
|
@ -1125,6 +1124,12 @@ static void r300_set_vertex_buffers(struct pipe_context* pipe,
|
|||
|
||||
/* Reference our buffer. */
|
||||
pipe_buffer_reference(&r300->vertex_buffer[i].buffer, vbo->buffer);
|
||||
|
||||
/* Skip NULL buffers */
|
||||
if (!buffers[i].buffer) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (r300_buffer_is_user_buffer(vbo->buffer)) {
|
||||
any_user_buffer = TRUE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue