diff options
author | Roland Scheidegger <[email protected]> | 2009-12-04 18:23:35 +0100 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2009-12-04 18:23:35 +0100 |
commit | c977dd9c7716b0a086eeb0c07f2da148065c3b18 (patch) | |
tree | 02117a37c4ab3a9d6d064e71d86bcc4cf9f4b908 /src/gallium/drivers/svga | |
parent | 4153ec547cfb7fcb26bbeb09ac9ef19fe88d3e4e (diff) |
svga: fix another pipe_reference strict aliasing violation
Diffstat (limited to 'src/gallium/drivers/svga')
-rw-r--r-- | src/gallium/drivers/svga/svga_screen_buffer.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |