u_vbuf_mgr: initialize flag indicating that buffers have been updated
authorMarek Olšák <maraeo@gmail.com>
Fri, 18 Feb 2011 12:45:29 +0000 (13:45 +0100)
committerMarek Olšák <maraeo@gmail.com>
Fri, 18 Feb 2011 12:57:31 +0000 (13:57 +0100)
This fixes r300g errors:
r300: Cannot get a relocation in radeon_drm_cs_write_reloc.

src/gallium/auxiliary/util/u_vbuf_mgr.c

index 7add88e529db823c3c2fca8b0879007fa08c51de..096392f313325cd7ea740a17aee4188b1c0e3cb4 100644 (file)
@@ -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;