summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i965/brw_winsys.h
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-12-22 09:52:26 +0000
committerKeith Whitwell <[email protected]>2009-12-22 09:52:26 +0000
commit96d63ebbf524df78e7a1d83d2acf75ae72d27f2a (patch)
treee9093a735b12fbb141bbae3331b8121a16a1d136 /src/gallium/drivers/i965/brw_winsys.h
parentaa02683e45f1eaf61bba2ba7eeda7686efeed2ca (diff)
i965g: update for u_format changes
Diffstat (limited to 'src/gallium/drivers/i965/brw_winsys.h')
-rw-r--r--src/gallium/drivers/i965/brw_winsys.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/i965/brw_winsys.h b/src/gallium/drivers/i965/brw_winsys.h
index 2f470677163..4f3187c33e6 100644
--- a/src/gallium/drivers/i965/brw_winsys.h
+++ b/src/gallium/drivers/i965/brw_winsys.h
@@ -244,7 +244,7 @@ bo_reference(struct brw_winsys_buffer **ptr, struct brw_winsys_buffer *buf)
{
struct brw_winsys_buffer *old_buf = *ptr;
- if (pipe_reference((struct pipe_reference **)ptr, &buf->reference))
+ if (pipe_reference(&(*ptr)->reference, &buf->reference))
old_buf->sws->bo_destroy(old_buf);
}