mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-15 02:38:28 +02:00
llvmpipe: Cope with null Vertex element cso.
CSO can often be null. For example: 1. at initialization 2. using an util module (u_blit) right after initialization (it will push state and pop the previous null state) 3. at shutdown time (state shouldn't be bound when being destroyed) Glean was hitting 2.
This commit is contained in:
parent
ed7f73e161
commit
eeaa0861bf
1 changed files with 2 additions and 1 deletions
|
|
@ -61,7 +61,8 @@ llvmpipe_bind_vertex_elements_state(struct pipe_context *pipe,
|
|||
|
||||
llvmpipe->dirty |= LP_NEW_VERTEX;
|
||||
|
||||
draw_set_vertex_elements(llvmpipe->draw, lp_velems->count, lp_velems->velem);
|
||||
if (velems)
|
||||
draw_set_vertex_elements(llvmpipe->draw, lp_velems->count, lp_velems->velem);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue