From 1bdbc0e38ff2a58f5aadbb0321d0f3c35db96fcc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Wed, 26 May 2010 16:39:14 +0200 Subject: [PATCH] r300g: fix fence referencing --- src/gallium/drivers/r300/r300_flush.c | 1 + 1 file changed, 1 insertion(+) 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; } } -- 2.30.2