diff options
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_fence.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_fence.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_fence.c b/src/gallium/drivers/llvmpipe/lp_fence.c index 14fbea6..97c4608 100644 --- a/src/gallium/drivers/llvmpipe/lp_fence.c +++ b/src/gallium/drivers/llvmpipe/lp_fence.c @@ -64,7 +64,7 @@ llvmpipe_fence_reference(struct pipe_screen *screen, struct lp_fence *old = (struct lp_fence *) *ptr; struct lp_fence *f = (struct lp_fence *) fence; - if (pipe_reference((struct pipe_reference**)ptr, &f->reference)) { + if (pipe_reference(&old->reference, &f->reference)) { lp_fence_destroy(old); } } |