From: José Fonseca Date: Thu, 29 Sep 2011 09:54:29 +0000 (+0100) Subject: llvmpipe: Also reset the state in lp_scene_bin_reset X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8d647247e23a5f2d13923d13a58fc62e76c9a476;p=mesa.git llvmpipe: Also reset the state in lp_scene_bin_reset Prevents segfaults when a opaque tile is found without state change. --- 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;