From: Roland Scheidegger Date: Fri, 4 Dec 2009 17:23:35 +0000 (+0100) Subject: svga: fix another pipe_reference strict aliasing violation X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c977dd9c7716b0a086eeb0c07f2da148065c3b18;p=mesa.git svga: fix another pipe_reference strict aliasing violation --- diff --git a/src/gallium/drivers/svga/svga_screen_buffer.c b/src/gallium/drivers/svga/svga_screen_buffer.c index 1f8a8896723..58a1aba464b 100644 --- a/src/gallium/drivers/svga/svga_screen_buffer.c +++ b/src/gallium/drivers/svga/svga_screen_buffer.c @@ -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; }