projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
500e3af
)
use pipe_region_reference() in softpipe_get_tex_surface() to fix refcount error
author
Brian
<brian.paul@tungstengraphics.com>
Wed, 10 Oct 2007 17:40:04 +0000
(11:40 -0600)
committer
Brian
<brian.paul@tungstengraphics.com>
Wed, 10 Oct 2007 17:40:04 +0000
(11:40 -0600)
src/mesa/pipe/softpipe/sp_surface.c
patch
|
blob
|
history
diff --git
a/src/mesa/pipe/softpipe/sp_surface.c
b/src/mesa/pipe/softpipe/sp_surface.c
index 574b474ba3b2bdac1b1882d11b064e254d685c63..27d4f064be0af5fd142bc8e13456f0f598ce2914 100755
(executable)
--- a/
src/mesa/pipe/softpipe/sp_surface.c
+++ b/
src/mesa/pipe/softpipe/sp_surface.c
@@
-882,7
+882,7
@@
softpipe_get_tex_surface(struct pipe_context *pipe,
if (ps) {
assert(ps->format);
assert(ps->refcount);
- p
s->region = mt->region
;
+ p
ipe_region_reference(&ps->region, mt->region)
;
ps->width = mt->level[level].width;
ps->height = mt->level[level].height;
ps->offset = offset;