From: Jakob Bornecrantz Date: Fri, 27 Aug 2010 23:30:00 +0000 (+0100) Subject: trace: Don't try to dump the rgba array if null X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=977f7d48eefee281cc6bb3ccfb462290854b05cd;p=mesa.git trace: Don't try to dump the rgba array if null --- diff --git a/src/gallium/drivers/trace/tr_context.c b/src/gallium/drivers/trace/tr_context.c index 9e8a23d35c7..271cd4aff5e 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);