diff options
author | Brian <brian.paul@tungstengraphics.com> | 2008-01-28 18:09:16 -0700 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2008-01-28 18:18:46 -0700 |
commit | 4bede9219be1f93844c5897216c6674b46a23a88 (patch) | |
tree | 018c278201152012b7cec6f4276b87483116e78d /src/mesa/pipe/cell/ppu/cell_texture.c | |
parent | e2406b47883d74933e74507af65695c8c7d7861a (diff) |
Cell: add a few null texture tests
Diffstat (limited to 'src/mesa/pipe/cell/ppu/cell_texture.c')
-rw-r--r-- | src/mesa/pipe/cell/ppu/cell_texture.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/pipe/cell/ppu/cell_texture.c b/src/mesa/pipe/cell/ppu/cell_texture.c index acbe4c79f0..2cf6022939 100644 --- a/src/mesa/pipe/cell/ppu/cell_texture.c +++ b/src/mesa/pipe/cell/ppu/cell_texture.c @@ -234,7 +234,8 @@ cell_update_texture_mapping(struct cell_context *cell) { uint face = 0, level = 0, zslice = 0; - cell_tile_texture(cell, cell->texture[0]); + if (cell->texture[0]) + cell_tile_texture(cell, cell->texture[0]); #if 0 if (cell->tex_surf && cell->tex_map) { pipe_surface_unmap(cell->tex_surf); |