aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/trace/tr_screen.c
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2013-04-25 14:18:33 +0100
committerJosé Fonseca <[email protected]>2013-04-25 14:18:33 +0100
commit28e6a272fc0d16b2c3c8972f8936126ebf0aa764 (patch)
treee2eaee87a000ed31e11518718fcfb5d7c4a8a59a /src/gallium/drivers/trace/tr_screen.c
parent74d1153c9c3f5f88ad3fa1819d54f5b574b2e37f (diff)
trace: Only close trace files on exit.
Many applications don't exit cleanly, others may create and destroy a screen multiple times, so we only write </trace> tag and close at exit time.
Diffstat (limited to 'src/gallium/drivers/trace/tr_screen.c')
-rw-r--r--src/gallium/drivers/trace/tr_screen.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gallium/drivers/trace/tr_screen.c b/src/gallium/drivers/trace/tr_screen.c
index df775072fa3..5281ba8b47b 100644
--- a/src/gallium/drivers/trace/tr_screen.c
+++ b/src/gallium/drivers/trace/tr_screen.c
@@ -427,7 +427,6 @@ trace_screen_destroy(struct pipe_screen *_screen)
trace_dump_call_begin("pipe_screen", "destroy");
trace_dump_arg(ptr, screen);
trace_dump_call_end();
- trace_dump_trace_end();
screen->destroy(screen);
@@ -497,7 +496,6 @@ trace_screen_create(struct pipe_screen *screen)
error2:
trace_dump_ret(ptr, screen);
trace_dump_call_end();
- trace_dump_trace_end();
error1:
return screen;
}