From: Jakob Bornecrantz Date: Wed, 14 Oct 2009 09:44:09 +0000 (+0200) Subject: trace: Handle transfer returning null X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=72fd1cf292937565a182b400595816c6ad88836a;p=mesa.git trace: Handle transfer returning null --- diff --git a/src/gallium/drivers/trace/tr_screen.c b/src/gallium/drivers/trace/tr_screen.c index ab605c7fc87..7da9bd3866b 100644 --- a/src/gallium/drivers/trace/tr_screen.c +++ b/src/gallium/drivers/trace/tr_screen.c @@ -366,7 +366,8 @@ trace_screen_get_tex_transfer(struct pipe_screen *_screen, trace_dump_call_end(); - result = trace_transfer_create(tr_tex, result); + if (result) + result = trace_transfer_create(tr_tex, result); return result; }