diff options
author | Brian Paul <[email protected]> | 2010-06-30 11:56:56 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-06-30 14:05:45 -0600 |
commit | fb06b543a52c33c10594437ebed2c5e306dc7382 (patch) | |
tree | 8d042fa1091be1797c63b47d79fc8485bf4b2c96 /src/gallium/drivers/llvmpipe/lp_texture.c | |
parent | 2b3e1ad731d2bd095a680d3120619972a7eb0242 (diff) |
llvmpipe: another null pointer check
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_texture.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_texture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_texture.c b/src/gallium/drivers/llvmpipe/lp_texture.c index a156bb6517b..1d42bdde4e2 100644 --- a/src/gallium/drivers/llvmpipe/lp_texture.c +++ b/src/gallium/drivers/llvmpipe/lp_texture.c @@ -1135,7 +1135,7 @@ llvmpipe_get_texture_tile_linear(struct llvmpipe_resource *lpr, layout_logic(cur_layout, LP_TEX_LAYOUT_LINEAR, usage, &new_layout, &convert); - if (convert) { + if (convert && tiled_image && linear_image) { lp_tiled_to_linear(tiled_image, linear_image, x, y, TILE_SIZE, TILE_SIZE, lpr->base.format, lpr->row_stride[level], |