From: Keith Whitwell Date: Tue, 22 Dec 2009 09:57:16 +0000 (+0000) Subject: i965g: fix bo_reference X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f069e457503c9fe5d252330937f944a5d2aeb54c;p=mesa.git i965g: fix bo_reference --- 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; }