projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'gallium-strict-aliasing'
[mesa.git]
/
src
/
gallium
/
state_trackers
/
python
/
st_device.c
diff --git
a/src/gallium/state_trackers/python/st_device.c
b/src/gallium/state_trackers/python/st_device.c
index 2966b24cdccff05da2129907395a6751ccf4b026..10c7ecbd78fb5556c02fc4b0fb958499f2ab274b 100644
(file)
--- 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;
}