winsys/intel: fix dereferencing of opaque type due to pipe_reference changes
authorRoland Scheidegger <sroland@vmware.com>
Thu, 10 Dec 2009 02:51:35 +0000 (03:51 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Thu, 10 Dec 2009 02:51:35 +0000 (03:51 +0100)
src/gallium/winsys/drm/intel/gem/intel_drm_fence.c

index b6248a3bcf759b689f953b03ff2433021a03fe34..e8b58742ab721b592499df5a8ec09e095559abaf 100644 (file)
@@ -39,7 +39,7 @@ intel_drm_fence_reference(struct intel_winsys *iws,
    struct intel_drm_fence *old = (struct intel_drm_fence *)*ptr;
    struct intel_drm_fence *f = (struct intel_drm_fence *)fence;
 
-   if (pipe_reference(&(*ptr)->reference, &f->reference)) {
+   if (pipe_reference(&((struct intel_drm_fence *)(*ptr))->reference, &f->reference)) {
       if (old->bo)
          drm_intel_bo_unreference(old->bo);
       FREE(old);