mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 18:00:10 +01:00
cell: check for NULL shader pointer in cell_bind_vs_state()
This commit is contained in:
parent
7aa34eb40c
commit
221adbd601
1 changed files with 2 additions and 1 deletions
|
|
@ -131,7 +131,8 @@ cell_bind_vs_state(struct pipe_context *pipe, void *vs)
|
|||
|
||||
cell->vs = (const struct cell_vertex_shader_state *) vs;
|
||||
|
||||
draw_bind_vertex_shader(cell->draw, cell->vs->draw_data);
|
||||
draw_bind_vertex_shader(cell->draw,
|
||||
(cell->vs ? cell->vs->draw_data : NULL));
|
||||
|
||||
cell->dirty |= CELL_NEW_VS;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue