diff options
author | José Fonseca <[email protected]> | 2011-09-29 10:54:29 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2011-09-29 17:43:39 +0100 |
commit | 8d647247e23a5f2d13923d13a58fc62e76c9a476 (patch) | |
tree | 18711b346778775dce88f945d6c2339361c2e8d6 /src/gallium | |
parent | b8d1242c0bb29ef6866cbfdd75cb18eec9ba8068 (diff) |
llvmpipe: Also reset the state in lp_scene_bin_reset
Prevents segfaults when a opaque tile is found without state change.
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_scene.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_scene.c b/src/gallium/drivers/llvmpipe/lp_scene.c index 5d0f5f8b7b5..ed998246fb9 100644 --- a/src/gallium/drivers/llvmpipe/lp_scene.c +++ b/src/gallium/drivers/llvmpipe/lp_scene.c @@ -122,6 +122,7 @@ lp_scene_bin_reset(struct lp_scene *scene, unsigned x, unsigned y) { struct cmd_bin *bin = lp_scene_get_bin(scene, x, y); + bin->last_state = NULL; bin->head = bin->tail; if (bin->tail) { bin->tail->next = NULL; |