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-Tag: 062012170305~17580^2~390^2~2321 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=221adbd60116d6334996a6b71a8dd133e229a3e9;p=profile%2Fivi%2Fmesa.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 9355014..269a5c1 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; }