OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9cb9cf
)
st/mesa: use pipe_sampler_view_release() in st_destroy_context_priv()
author
Brian Paul
<brianp@vmware.com>
Fri, 18 May 2012 21:32:10 +0000
(15:32 -0600)
committer
Brian Paul
<brianp@vmware.com>
Sat, 19 May 2012 14:28:57 +0000
(08:28 -0600)
Fixes another case of sampler views being created by one context,
shared by another, then deleted by the first, leaving a dangling
pipe context pointer.
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/mesa/state_tracker/st_context.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_context.c
b/src/mesa/state_tracker/st_context.c
index
b449765
..
132dcc0
100644
(file)
--- a/
src/mesa/state_tracker/st_context.c
+++ b/
src/mesa/state_tracker/st_context.c
@@
-247,7
+247,7
@@
static void st_destroy_context_priv( struct st_context *st )
st_destroy_drawtex(st);
for (i = 0; i < Elements(st->state.sampler_views); i++) {
- pipe_sampler_view_re
ference(&st->state.sampler_views[i], NULL
);
+ pipe_sampler_view_re
lease(st->pipe, &st->state.sampler_views[i]
);
}
if (st->default_texture) {