summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/cell/ppu/cell_texture.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/pipe/cell/ppu/cell_texture.c')
-rw-r--r--src/mesa/pipe/cell/ppu/cell_texture.c3
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);