Mesa (master): trace: Don't try to dump the rgba array if null
Jakob Bornecrantz
wallbraker at kemper.freedesktop.org
Fri Aug 27 23:57:46 UTC 2010
Module: Mesa
Branch: master
Commit: 977f7d48eefee281cc6bb3ccfb462290854b05cd
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=977f7d48eefee281cc6bb3ccfb462290854b05cd
Author: Jakob Bornecrantz <wallbraker at gmail.com>
Date: Sat Aug 28 00:30:00 2010 +0100
trace: Don't try to dump the rgba array if null
---
src/gallium/drivers/trace/tr_context.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/gallium/drivers/trace/tr_context.c b/src/gallium/drivers/trace/tr_context.c
index 9e8a23d..271cd4a 100644
--- a/src/gallium/drivers/trace/tr_context.c
+++ b/src/gallium/drivers/trace/tr_context.c
@@ -1063,7 +1063,10 @@ trace_context_clear(struct pipe_context *_pipe,
trace_dump_arg(ptr, pipe);
trace_dump_arg(uint, buffers);
- trace_dump_arg_array(float, rgba, 4);
+ if (rgba)
+ trace_dump_arg_array(float, rgba, 4);
+ else
+ trace_dump_null();
trace_dump_arg(float, depth);
trace_dump_arg(uint, stencil);
More information about the mesa-commit
mailing list