svga: fix MSVC build error after PIPE_CAP_USER_INDEX_BUFFERS removal
authorBrian Paul <brianp@vmware.com>
Sat, 25 Feb 2017 02:02:39 +0000 (19:02 -0700)
committerBrian Paul <brianp@vmware.com>
Sat, 25 Feb 2017 02:07:10 +0000 (19:07 -0700)
Need to specify the zero for the struct initializer.  My earlier test
of the patch series was with MinGW, not MSVC.

Trivial.

src/gallium/drivers/svga/svga_pipe_draw.c

index bbd443049507da7dcbaa0bb0b655c780fc7189e4..b9637b25b344ff846a60f86dc71011f18f3d8f03 100644 (file)
@@ -196,7 +196,7 @@ svga_draw_vbo(struct pipe_context *pipe, const struct pipe_draw_info *info)
       goto done;
 
    /* Upload a user index buffer. */
-   struct pipe_index_buffer ibuffer_saved = {};
+   struct pipe_index_buffer ibuffer_saved = {0};
    if (info->indexed && svga->curr.ib.user_buffer &&
        !util_save_and_upload_index_buffer(pipe, info, &svga->curr.ib,
                                           &ibuffer_saved)) {