diff options
author | Jakob Bornecrantz <jakob@vmware.com> | 2009-10-14 11:44:09 +0200 |
---|---|---|
committer | Jakob Bornecrantz <jakob@vmware.com> | 2009-10-14 11:44:09 +0200 |
commit | 72fd1cf292937565a182b400595816c6ad88836a (patch) | |
tree | 85e0d1959603fe7c05334967d105e0125a110318 /src | |
parent | 074e069910c7082620be4211fe5496365f828886 (diff) |
trace: Handle transfer returning null
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/trace/tr_screen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/trace/tr_screen.c b/src/gallium/drivers/trace/tr_screen.c index ab605c7fc8..7da9bd3866 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; } |