diff options
author | Brian <brian.paul@tungstengraphics.com> | 2008-03-10 16:43:36 -0600 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2008-03-10 16:43:36 -0600 |
commit | 5b82d551b7a4954b24059585fea207f3a250ec0f (patch) | |
tree | 879baeb45c7fe28932810fc450331a55f1247108 /src/gallium/drivers/cell/ppu/cell_state_emit.c | |
parent | 31022681543932ae4fce2bae5bc9d024c8178f1a (diff) |
cell: sync up with sampler/texture state-setting changes
Diffstat (limited to 'src/gallium/drivers/cell/ppu/cell_state_emit.c')
-rw-r--r-- | src/gallium/drivers/cell/ppu/cell_state_emit.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/cell/ppu/cell_state_emit.c b/src/gallium/drivers/cell/ppu/cell_state_emit.c index 49c0d130c5..670eb26bdd 100644 --- a/src/gallium/drivers/cell/ppu/cell_state_emit.c +++ b/src/gallium/drivers/cell/ppu/cell_state_emit.c @@ -77,8 +77,10 @@ cell_emit_state(struct cell_context *cell) } if (cell->dirty & CELL_NEW_SAMPLER) { - emit_state_cmd(cell, CELL_CMD_STATE_SAMPLER, - cell->sampler[0], sizeof(struct pipe_sampler_state)); + if (cell->sampler[0]) { + emit_state_cmd(cell, CELL_CMD_STATE_SAMPLER, + cell->sampler[0], sizeof(struct pipe_sampler_state)); + } } if (cell->dirty & CELL_NEW_TEXTURE) { |