summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/softpipe/sp_surface.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-10-10 11:40:04 -0600
committerBrian <[email protected]>2007-10-10 11:40:04 -0600
commite23a7b2ea4a311af6b661f10747716e28fa451db (patch)
tree194f11c6cf753d02b53b5a0f433c7cb1334655a4 /src/mesa/pipe/softpipe/sp_surface.c
parent500e3af175cf8ef66bad23ae3b9e440670421ecd (diff)
use pipe_region_reference() in softpipe_get_tex_surface() to fix refcount error
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_surface.c')
-rwxr-xr-xsrc/mesa/pipe/softpipe/sp_surface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/pipe/softpipe/sp_surface.c b/src/mesa/pipe/softpipe/sp_surface.c
index 574b474ba3b..27d4f064be0 100755
--- 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);
- ps->region = mt->region;
+ pipe_region_reference(&ps->region, mt->region);
ps->width = mt->level[level].width;
ps->height = mt->level[level].height;
ps->offset = offset;