trace: Handle transfer returning null
authorJakob Bornecrantz <jakob@vmware.com>
Wed, 14 Oct 2009 09:44:09 +0000 (11:44 +0200)
committerJakob Bornecrantz <jakob@vmware.com>
Wed, 14 Oct 2009 09:44:09 +0000 (11:44 +0200)
src/gallium/drivers/trace/tr_screen.c

index ab605c7..7da9bd3 100644 (file)
@@ -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;
 }