From 449c4f3706bb479aaa3921cd8e6edc62e80c6e5b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Fri, 18 Feb 2011 13:45:29 +0100 Subject: [PATCH] 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. --- src/gallium/auxiliary/util/u_vbuf_mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2