aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/identity
diff options
context:
space:
mode:
authorCorbin Simpson <[email protected]>2010-06-22 22:13:33 -0700
committerCorbin Simpson <[email protected]>2010-06-22 22:49:13 -0700
commit75612aa19946c6e546ff72b83d0e1bbe4db90db2 (patch)
tree49161f67c531945476d973c416eda2ba640bf328 /src/gallium/drivers/identity
parent40faedfe7b4c17bc62da4c5f661fac3cc292082d (diff)
id, glhd: Fix segfault with misreferenced pipe member.
And remove the offending member to keep that from happening again.
Diffstat (limited to 'src/gallium/drivers/identity')
-rw-r--r--src/gallium/drivers/identity/id_objects.c4
-rw-r--r--src/gallium/drivers/identity/id_objects.h1
2 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/drivers/identity/id_objects.c b/src/gallium/drivers/identity/id_objects.c
index ca4743f9ef7..82d06e7f605 100644
--- a/src/gallium/drivers/identity/id_objects.c
+++ b/src/gallium/drivers/identity/id_objects.c
@@ -180,8 +180,8 @@ identity_transfer_destroy(struct identity_context *id_context,
struct identity_transfer *id_transfer)
{
pipe_resource_reference(&id_transfer->base.resource, NULL);
- id_transfer->pipe->transfer_destroy(id_context->pipe,
- id_transfer->transfer);
+ id_context->pipe->transfer_destroy(id_context->pipe,
+ id_transfer->transfer);
FREE(id_transfer);
}
diff --git a/src/gallium/drivers/identity/id_objects.h b/src/gallium/drivers/identity/id_objects.h
index 5eea10b0b5a..e8deabf4fc7 100644
--- a/src/gallium/drivers/identity/id_objects.h
+++ b/src/gallium/drivers/identity/id_objects.h
@@ -65,7 +65,6 @@ struct identity_transfer
{
struct pipe_transfer base;
- struct pipe_context *pipe;
struct pipe_transfer *transfer;
};