gallium: fix remaining users of pipe_reference function

This commit is contained in:
Roland Scheidegger
2009-12-03 23:58:30 +01:00
parent 86c8f70db1
commit 4153ec547c
4 changed files with 7 additions and 4 deletions

View File

@@ -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;
}