cell: check for NULL shader pointer in cell_bind_vs_state()

This commit is contained in:
Brian 2008-03-11 20:03:37 -06:00
parent 7aa34eb40c
commit 221adbd601
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}