From f069e457503c9fe5d252330937f944a5d2aeb54c Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Tue, 22 Dec 2009 09:57:16 +0000 Subject: [PATCH] i965g: fix bo_reference --- src/gallium/drivers/i965/brw_winsys.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/i965/brw_winsys.h b/src/gallium/drivers/i965/brw_winsys.h index 4f3187c33e6..a242e31218a 100644 --- a/src/gallium/drivers/i965/brw_winsys.h +++ b/src/gallium/drivers/i965/brw_winsys.h @@ -246,6 +246,8 @@ bo_reference(struct brw_winsys_buffer **ptr, struct brw_winsys_buffer *buf) if (pipe_reference(&(*ptr)->reference, &buf->reference)) old_buf->sws->bo_destroy(old_buf); + + *ptr = buf; } -- 2.30.2