diff options
author | Ben Skeggs <[email protected]> | 2008-11-10 16:12:28 +1100 |
---|---|---|
committer | Ben Skeggs <[email protected]> | 2008-11-10 16:12:28 +1100 |
commit | e658950d4e6c0e5f8b09fa89718d358030885e08 (patch) | |
tree | 530bad3ae6fbc5a758af532f0c1e55acff7c3bec /src/gallium/drivers | |
parent | 66eacb3fed6bc1926e1925b164b7168a6e0a82d5 (diff) |
nv40: init pipe_surface correctly
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/nv40/nv40_miptree.c | 2 |
1 files changed, 2 insertions, 0 deletions
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]; |