From: Ben Skeggs Date: Mon, 10 Nov 2008 05:12:28 +0000 (+1100) Subject: nv40: init pipe_surface correctly X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e658950d4e6c0e5f8b09fa89718d358030885e08;p=mesa.git nv40: init pipe_surface correctly --- diff --git a/src/gallium/drivers/nv40/nv40_miptree.c b/src/gallium/drivers/nv40/nv40_miptree.c index f8d4497bf75..f321b721492 100644 --- a/src/gallium/drivers/nv40/nv40_miptree.c +++ b/src/gallium/drivers/nv40/nv40_miptree.c @@ -123,6 +123,8 @@ nv40_miptree_surface_new(struct pipe_screen *pscreen, struct pipe_texture *pt, ps->stride = mt->level[level].pitch; ps->usage = flags; ps->status = PIPE_SURFACE_STATUS_DEFINED; + ps->refcount = 1; + ps->winsys = pscreen->winsys; if (pt->target == PIPE_TEXTURE_CUBE) { ps->offset = mt->level[level].image_offset[face];