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 ab605c7fc8761bcf155636c004139cdffec31bc6..7da9bd3866ba8e6b2c82713db3b7b0a0ccc20c47 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;
 }