summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2009-10-14 11:44:09 +0200
committerJakob Bornecrantz <[email protected]>2009-10-14 11:44:09 +0200
commit72fd1cf292937565a182b400595816c6ad88836a (patch)
tree85e0d1959603fe7c05334967d105e0125a110318
parent074e069910c7082620be4211fe5496365f828886 (diff)
trace: Handle transfer returning null
-rw-r--r--src/gallium/drivers/trace/tr_screen.c3
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 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;
}