projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfeca90
)
st/nine: fix early basetexture destruction
author
Axel Davy
<axel.davy@ens.fr>
Sat, 24 Jan 2015 22:33:07 +0000
(23:33 +0100)
committer
Axel Davy
<axel.davy@ens.fr>
Thu, 5 Feb 2015 23:07:18 +0000
(
00:07
+0100)
Reviewed-by: Tiziano Bacocco <tizbac2@gmail.com>
Signed-off-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/basetexture9.c
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/nine/basetexture9.c
b/src/gallium/state_trackers/nine/basetexture9.c
index 5134de24e234c9576a57821fcc0bac28dd1a8e6b..8d183e65d462e79319110f38b025d04c96b52104 100644
(file)
--- a/
src/gallium/state_trackers/nine/basetexture9.c
+++ b/
src/gallium/state_trackers/nine/basetexture9.c
@@
-85,7
+85,8
@@
NineBaseTexture9_dtor( struct NineBaseTexture9 *This )
pipe_sampler_view_reference(&This->view[0], NULL);
pipe_sampler_view_reference(&This->view[1], NULL);
- list_del(&This->list),
+ if (This->list.prev != NULL && This->list.next != NULL)
+ list_del(&This->list),
NineResource9_dtor(&This->base);
}