projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8d1242
)
llvmpipe: Also reset the state in lp_scene_bin_reset
author
José Fonseca
<jfonseca@vmware.com>
Thu, 29 Sep 2011 09:54:29 +0000
(10:54 +0100)
committer
José 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
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/llvmpipe/lp_scene.c
b/src/gallium/drivers/llvmpipe/lp_scene.c
index
5d0f5f8
..
ed99824
100644
(file)
--- 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;