From: Brian Date: Wed, 12 Mar 2008 02:03:37 +0000 (-0600) Subject: cell: check for NULL shader pointer in cell_bind_vs_state() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=221adbd60116d6334996a6b71a8dd133e229a3e9;p=mesa.git cell: check for NULL shader pointer in cell_bind_vs_state() --- diff --git a/src/gallium/drivers/cell/ppu/cell_state_shader.c b/src/gallium/drivers/cell/ppu/cell_state_shader.c index 935501441b1..269a5c15bac 100644 --- a/src/gallium/drivers/cell/ppu/cell_state_shader.c +++ b/src/gallium/drivers/cell/ppu/cell_state_shader.c @@ -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; }