use pipe_region_reference() in softpipe_get_tex_surface() to fix refcount error
authorBrian <brian.paul@tungstengraphics.com>
Wed, 10 Oct 2007 17:40:04 +0000 (11:40 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Wed, 10 Oct 2007 17:40:04 +0000 (11:40 -0600)
src/mesa/pipe/softpipe/sp_surface.c

index 574b474ba3b2bdac1b1882d11b064e254d685c63..27d4f064be0af5fd142bc8e13456f0f598ce2914 100755 (executable)
@@ -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;