svga: fix another pipe_reference strict aliasing violation

This commit is contained in:
Roland Scheidegger
2009-12-04 18:23:35 +01:00
parent 4153ec547c
commit c977dd9c77
@@ -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;
}