diff options
author | Ben Skeggs <darktama@beleth.(none)> | 2008-02-22 14:46:48 +1100 |
---|---|---|
committer | Ben Skeggs <darktama@beleth.(none)> | 2008-02-22 14:46:48 +1100 |
commit | 7b938431d0ab5ccce1e7e2b1c38e1dcbdc6001e8 (patch) | |
tree | 38cc708d5414c4ba6165995bf9b45c722f265d70 /src/gallium/drivers/nouveau/nouveau_stateobj.h | |
parent | c2e36bdd1a58ba6f58c4e72db1f7f64e8bd05901 (diff) |
nv40: stateobj start out with 0 refcount
Diffstat (limited to 'src/gallium/drivers/nouveau/nouveau_stateobj.h')
-rw-r--r-- | src/gallium/drivers/nouveau/nouveau_stateobj.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/nouveau_stateobj.h b/src/gallium/drivers/nouveau/nouveau_stateobj.h index 459cc7d77ae..439c7e4734a 100644 --- a/src/gallium/drivers/nouveau/nouveau_stateobj.h +++ b/src/gallium/drivers/nouveau/nouveau_stateobj.h @@ -32,7 +32,7 @@ so_new(unsigned push, unsigned reloc) struct nouveau_stateobj *so; so = MALLOC(sizeof(struct nouveau_stateobj)); - so->refcount = 1; + so->refcount = 0; so->push = MALLOC(sizeof(unsigned) * push); so->reloc = MALLOC(sizeof(struct nouveau_stateobj_reloc) * reloc); |