summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-05-26 16:39:14 +0200
committerMarek Olšák <[email protected]>2010-05-26 16:39:32 +0200
commit1bdbc0e38ff2a58f5aadbb0321d0f3c35db96fcc (patch)
treeb700982d189ab94cae6a04d959cc6fc75d060e82
parentd3f598a506d911e7cbbe561a798d284a154da3cd (diff)
r300g: fix fence referencing
-rw-r--r--src/gallium/drivers/r300/r300_flush.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_flush.c b/src/gallium/drivers/r300/r300_flush.c
index 9cda940c85d..360b19a0c1e 100644
--- a/src/gallium/drivers/r300/r300_flush.c
+++ b/src/gallium/drivers/r300/r300_flush.c
@@ -77,6 +77,7 @@ static void r300_flush(struct pipe_context* pipe,
/* Create a new fence. */
if (rfence) {
*rfence = CALLOC_STRUCT(r300_fence);
+ pipe_reference_init(&(*rfence)->reference, 1);
(*rfence)->ctx = r300;
}
}