llvmpipe: Also reset the state in lp_scene_bin_reset
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 29 Sep 2011 09:54:29 +0000 (10:54 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 29 Sep 2011 16:43:39 +0000 (17:43 +0100)
Prevents segfaults when a opaque tile is found without state change.

src/gallium/drivers/llvmpipe/lp_scene.c

index 5d0f5f8..ed99824 100644 (file)
@@ -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;