diff options
author | Brian <[email protected]> | 2008-03-11 20:03:37 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2008-03-11 20:03:37 -0600 |
commit | 221adbd60116d6334996a6b71a8dd133e229a3e9 (patch) | |
tree | e807a74cf426dbdecf2a32786a66536a74aba437 | |
parent | 7aa34eb40c05a9ccdbe5cef3fd426def0c295a60 (diff) |
cell: check for NULL shader pointer in cell_bind_vs_state()
-rw-r--r-- | src/gallium/drivers/cell/ppu/cell_state_shader.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |