From: Brian Date: Wed, 10 Oct 2007 17:40:04 +0000 (-0600) Subject: use pipe_region_reference() in softpipe_get_tex_surface() to fix refcount error X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e23a7b2ea4a311af6b661f10747716e28fa451db;p=mesa.git use pipe_region_reference() in softpipe_get_tex_surface() to fix refcount error --- 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;