From: Jerome Glisse Date: Thu, 18 Dec 2008 18:56:45 +0000 (+0100) Subject: softpipe: initialize refcount and winsys X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5f36c5b2c59bb8be53d3712b3896b448ef086c74;p=mesa.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 84a497c3516..0cb4b2f03c3 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);