diff options
author | Roland Scheidegger <[email protected]> | 2009-12-08 19:26:20 +0100 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2009-12-08 19:26:20 +0100 |
commit | 4ebc54795dc93f7eee200312abfa2da1b49506e3 (patch) | |
tree | 3303b9bd235763ddfe55603f3e16d54fc41d83c5 /src/gallium/state_trackers/python | |
parent | bc7567d9665924650c43c661d07ae9a922554bee (diff) | |
parent | ee1720b99dfb5964962f2346406a4e3e88374a68 (diff) |
Merge branch 'gallium-strict-aliasing'
Diffstat (limited to 'src/gallium/state_trackers/python')
-rw-r--r-- | src/gallium/state_trackers/python/st_device.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/python/st_device.c b/src/gallium/state_trackers/python/st_device.c index 2966b24cdcc..10c7ecbd78f 100644 --- a/src/gallium/state_trackers/python/st_device.c +++ b/src/gallium/state_trackers/python/st_device.c @@ -62,8 +62,9 @@ st_device_reference(struct st_device **ptr, struct st_device *st_dev) { struct st_device *old_dev = *ptr; - if (pipe_reference((struct pipe_reference **)ptr, &st_dev->reference)) + if (pipe_reference(&(*ptr)->reference, &st_dev->reference)) st_device_really_destroy(old_dev); + *ptr = st_dev; } |