i965g: fix bo_reference
authorKeith Whitwell <keithw@vmware.com>
Tue, 22 Dec 2009 09:57:16 +0000 (09:57 +0000)
committerKeith Whitwell <keithw@vmware.com>
Tue, 22 Dec 2009 09:57:16 +0000 (09:57 +0000)
src/gallium/drivers/i965/brw_winsys.h

index 4f3187c33e6843dcc4d0aa90cf1c01e78d61eb17..a242e31218af714ab887500a8c212a2a15967bf6 100644 (file)
@@ -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;
 }