summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/trace/tr_buffer.c
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@vmware.com>2009-04-17 15:52:05 +0200
committerJakob Bornecrantz <jakob@vmware.com>2009-04-17 16:03:01 +0200
commit5800e0aad1e803fbe2a1e1a7f8abcdff58699901 (patch)
tree68907cb724217711d81eaeeb6f158495c4fb5653 /src/gallium/drivers/trace/tr_buffer.c
parentdbb90436f8385a33b9938c66a0fa3eff8c36a4cc (diff)
trace: Simplify trace_buffer function
Diffstat (limited to 'src/gallium/drivers/trace/tr_buffer.c')
-rw-r--r--src/gallium/drivers/trace/tr_buffer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/trace/tr_buffer.c b/src/gallium/drivers/trace/tr_buffer.c
index 6ffce1660e..3cdb107dc6 100644
--- a/src/gallium/drivers/trace/tr_buffer.c
+++ b/src/gallium/drivers/trace/tr_buffer.c
@@ -64,7 +64,8 @@ void
trace_buffer_destroy(struct trace_screen *tr_scr,
struct pipe_buffer *buffer)
{
- struct trace_buffer *tr_buf = trace_buffer(tr_scr, buffer);
+ struct trace_buffer *tr_buf = trace_buffer(buffer);
+
pipe_buffer_reference(&tr_buf->buffer, NULL);
FREE(tr_buf);
}