diff options
author | Brian Paul <brianp@vmware.com> | 2010-06-29 15:40:15 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-06-29 15:40:19 -0600 |
commit | 3d6101245b2726721a26931e0491c61286ca29c6 (patch) | |
tree | d6b53f8b69309e27a6803181d86e59bab103d030 /src/gallium/drivers/llvmpipe/lp_rast_priv.h | |
parent | 249c6735dd5679be9f6ab8951982253919152985 (diff) |
llvmpipe: don't crash/assert on out of memory
Check for null pointers and return early, etc.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_rast_priv.h')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_rast_priv.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_rast_priv.h b/src/gallium/drivers/llvmpipe/lp_rast_priv.h index d33dd49f3a..9bded086ef 100644 --- a/src/gallium/drivers/llvmpipe/lp_rast_priv.h +++ b/src/gallium/drivers/llvmpipe/lp_rast_priv.h @@ -172,7 +172,8 @@ lp_rast_get_color_block_pointer(struct lp_rasterizer_task *task, assert((y % TILE_VECTOR_HEIGHT) == 0); color = task->color_tiles[buf]; - assert(color); + if (!color) + return NULL; px = x % TILE_SIZE; py = y % TILE_SIZE; |