llvmpipe: another null pointer check
authorBrian Paul <brianp@vmware.com>
Wed, 30 Jun 2010 17:56:56 +0000 (11:56 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 30 Jun 2010 20:05:45 +0000 (14:05 -0600)
src/gallium/drivers/llvmpipe/lp_texture.c

index a156bb6517bd072a0d708504bb6e512ebecec0c1..1d42bdde4e2c42c2749862371769c740245d4b01 100644 (file)
@@ -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],