projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a80216
)
cell: fix segfault when freeing samplers
author
Brian Paul
<brianp@vmware.com>
Tue, 27 Jul 2010 02:49:35 +0000
(20:49 -0600)
committer
Brian Paul
<brianp@vmware.com>
Tue, 27 Jul 2010 02:49:35 +0000
(20:49 -0600)
src/gallium/drivers/cell/ppu/cell_pipe_state.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/cell/ppu/cell_pipe_state.c
b/src/gallium/drivers/cell/ppu/cell_pipe_state.c
index 03f84d295b50b63a0cd7d63719807e3ced435fdf..223adda48f0651714d538ff12d0ea73618657206 100644
(file)
--- a/
src/gallium/drivers/cell/ppu/cell_pipe_state.c
+++ b/
src/gallium/drivers/cell/ppu/cell_pipe_state.c
@@
-281,7
+281,7
@@
cell_set_fragment_sampler_views(struct pipe_context *pipe,
struct pipe_resource *new_tex = new_view ? new_view->texture : NULL;
pipe_sampler_view_reference(&cell->fragment_sampler_views[i],
-
views[i]
);
+
new_view
);
pipe_resource_reference((struct pipe_resource **) &cell->texture[i],
(struct pipe_resource *) new_tex);