diff options
author | Brian Paul <[email protected]> | 2013-02-15 10:36:32 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-02-15 11:11:34 -0700 |
commit | 82d62cf04f3c585ba324fcef16417fbee4a3d220 (patch) | |
tree | f743480e4c38f77a4e26b57a294c71454d257c8b /src/gallium/drivers/trace/tr_context.c | |
parent | 3b0de75c4dab869f2e312c4627cd69fd0b40d7aa (diff) |
trace: fix incorrect trace_surface::base.context pointer
When a trace_surface object is created in trace_surf_create() we
weren't correctly setting the surface's context pointer. Instead of
it being the trace context, it was the wrapped driver's context.
This caused things to blow up sometimes during surface deallocation.
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/drivers/trace/tr_context.c')
-rw-r--r-- | src/gallium/drivers/trace/tr_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/trace/tr_context.c b/src/gallium/drivers/trace/tr_context.c index 9668aace6e1..b88f37999e9 100644 --- a/src/gallium/drivers/trace/tr_context.c +++ b/src/gallium/drivers/trace/tr_context.c @@ -897,7 +897,7 @@ trace_context_create_surface(struct pipe_context *_pipe, trace_dump_call_end(); - result = trace_surf_create(tr_res, result); + result = trace_surf_create(tr_ctx, tr_res, result); return result; } |