From: Jerome Glisse Date: Thu, 18 Dec 2008 18:56:45 +0000 (+0100) Subject: softpipe: initialize refcount and winsys X-Git-Tag: mesa-7.8~4139^2~496^2~174 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=26b5e92c302e0a83e08aa2100b23c10919a97f4a;p=platform%2Fupstream%2Fmesa.git softpipe: initialize refcount and winsys --- diff --git a/src/gallium/drivers/softpipe/sp_texture.c b/src/gallium/drivers/softpipe/sp_texture.c index 84a497c..0cb4b2f 100644 --- a/src/gallium/drivers/softpipe/sp_texture.c +++ b/src/gallium/drivers/softpipe/sp_texture.c @@ -219,6 +219,8 @@ softpipe_get_tex_surface(struct pipe_screen *screen, assert(level <= pt->last_level); ps = CALLOC_STRUCT(pipe_surface); + ps->refcount = 1; + ps->winsys = ws; if (ps) { assert(ps->refcount); assert(ps->winsys);