svga: fix another pipe_reference strict aliasing violation
authorRoland Scheidegger <sroland@vmware.com>
Fri, 4 Dec 2009 17:23:35 +0000 (18:23 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Fri, 4 Dec 2009 17:23:35 +0000 (18:23 +0100)
src/gallium/drivers/svga/svga_screen_buffer.c

index 1f8a88967238e9f3430a7fa15c7ca1f98a3ce6a7..58a1aba464b8fb4be3e29a0294414eb272082f9c 100644 (file)
@@ -356,7 +356,8 @@ svga_buffer_upload_flush(struct svga_context *svga,
    sbuf->hw.boxes = NULL;
 
    /* Decrement reference count */
-   pipe_buffer_reference((struct pipe_buffer **)&sbuf, NULL);
+   pipe_reference(&(sbuf->base.reference), NULL);
+   sbuf = NULL;
 }