diff options
author | Jakob Bornecrantz <[email protected]> | 2010-08-28 00:30:00 +0100 |
---|---|---|
committer | Jakob Bornecrantz <[email protected]> | 2010-08-28 00:56:51 +0100 |
commit | 977f7d48eefee281cc6bb3ccfb462290854b05cd (patch) | |
tree | bef05c59b170b57526131566a21ee3c45e57ce2e | |
parent | c7adb4ff1e7183d476680617d130b7dfed80d6c0 (diff) |
trace: Don't try to dump the rgba array if null
-rw-r--r-- | 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 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); |