Module: Mesa
Branch: master
Commit: 1bdbc0e38ff2a58f5aadbb0321d0f3c35db96fcc
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=1bdbc0e38ff2a58f5aadbb0321d0f3c35db96fcc

Author: Marek Olšák <[email protected]>
Date:   Wed May 26 16:39:14 2010 +0200

r300g: fix fence referencing

---

 src/gallium/drivers/r300/r300_flush.c |    1 +
 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 9cda940..360b19a 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;
     }
 }

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to