trace: Don't try to dump the rgba array if null
authorJakob Bornecrantz <wallbraker@gmail.com>
Fri, 27 Aug 2010 23:30:00 +0000 (00:30 +0100)
committerJakob Bornecrantz <wallbraker@gmail.com>
Fri, 27 Aug 2010 23:56:51 +0000 (00:56 +0100)
src/gallium/drivers/trace/tr_context.c

index 9e8a23d35c75b9b1504ce5f7fa28bf412a0b06df..271cd4aff5ec2c4c1a26cbba7f0ad7159d9cd6d0 100644 (file)
@@ -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);