summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Skeggs <skeggsb@gmail.com>2008-11-10 16:12:28 +1100
committerBen Skeggs <skeggsb@gmail.com>2008-11-10 16:12:28 +1100
commite658950d4e6c0e5f8b09fa89718d358030885e08 (patch)
tree530bad3ae6fbc5a758af532f0c1e55acff7c3bec
parent66eacb3fed6bc1926e1925b164b7168a6e0a82d5 (diff)
nv40: init pipe_surface correctly
-rw-r--r--src/gallium/drivers/nv40/nv40_miptree.c2
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 f8d4497bf..f321b7214 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];