diff options
author | Roland Scheidegger <[email protected]> | 2009-12-03 23:58:30 +0100 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2009-12-03 23:58:30 +0100 |
commit | 4153ec547cfb7fcb26bbeb09ac9ef19fe88d3e4e (patch) | |
tree | 78ad987e0903557f9c29895bfae90ec2cf1f0dd1 /src/gallium/state_trackers | |
parent | 86c8f70db10a584aa78e4d5f397ad3543fdb77d2 (diff) |
gallium: fix remaining users of pipe_reference function
Diffstat (limited to 'src/gallium/state_trackers')
-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 a791113abac..f19cf4b5771 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; } |