summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-12-22 09:57:16 +0000
committerKeith Whitwell <[email protected]>2009-12-22 09:57:16 +0000
commitf069e457503c9fe5d252330937f944a5d2aeb54c (patch)
tree46a3229d2154ead235a1758d34979a944759411d
parent96d63ebbf524df78e7a1d83d2acf75ae72d27f2a (diff)
i965g: fix bo_reference
-rw-r--r--src/gallium/drivers/i965/brw_winsys.h2
1 files changed, 2 insertions, 0 deletions
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;
}