summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2009-03-07 17:21:15 +1000
committerBen Skeggs <[email protected]>2009-03-07 17:49:09 +1000
commit51fa4d47eac58c98c5b265e15a7dbf961ecbda4e (patch)
tree904b26a2251bf38d7e2f1c96e9cf95dd66c8a929 /src/gallium
parentca95d71a4bc63e2ea45abf9096a3da802819ef92 (diff)
nouveau: fix more breakage from pipe_reference..
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/winsys/drm/nouveau/common/nouveau_context.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/winsys/drm/nouveau/common/nouveau_context.c b/src/gallium/winsys/drm/nouveau/common/nouveau_context.c
index d9321eaa3f9..2c711e583c7 100644
--- a/src/gallium/winsys/drm/nouveau/common/nouveau_context.c
+++ b/src/gallium/winsys/drm/nouveau/common/nouveau_context.c
@@ -107,6 +107,7 @@ nouveau_context_init(struct nouveau_screen *nv_screen,
return 1;
}
nv_screen->nvc = nvc;
+ pipe_reference_init(&nvc->reference, 1);
}
pipe_reference((struct pipe_reference**)&nv->nvc, &nvc->reference);