From: Marek Olšák Date: Fri, 18 Feb 2011 12:45:29 +0000 (+0100) Subject: u_vbuf_mgr: initialize flag indicating that buffers have been updated X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=449c4f3706bb479aaa3921cd8e6edc62e80c6e5b;p=mesa.git u_vbuf_mgr: initialize flag indicating that buffers have been updated This fixes r300g errors: r300: Cannot get a relocation in radeon_drm_cs_write_reloc. --- diff --git a/src/gallium/auxiliary/util/u_vbuf_mgr.c b/src/gallium/auxiliary/util/u_vbuf_mgr.c index 7add88e529d..096392f3133 100644 --- a/src/gallium/auxiliary/util/u_vbuf_mgr.c +++ b/src/gallium/auxiliary/util/u_vbuf_mgr.c @@ -560,7 +560,7 @@ void u_vbuf_mgr_draw_begin(struct u_vbuf_mgr *mgrb, boolean *uploader_flushed) { struct u_vbuf_mgr_priv *mgr = (struct u_vbuf_mgr_priv*)mgrb; - boolean bufs_updated, upload_flushed = FALSE; + boolean bufs_updated = FALSE, upload_flushed = FALSE; int min_index, max_index; min_index = info->min_index - info->index_bias;