Mesa (master): svga: fix MSVC build error after PIPE_CAP_USER_INDEX_BUFFERS removal
Brian Paul
brianp at kemper.freedesktop.org
Sat Feb 25 02:07:20 UTC 2017
Module: Mesa
Branch: master
Commit: fcf466383ae281cc35dd5df4e6af9e4e0d811d33
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fcf466383ae281cc35dd5df4e6af9e4e0d811d33
Author: Brian Paul <brianp at vmware.com>
Date: Fri Feb 24 19:02:39 2017 -0700
svga: fix MSVC build error after PIPE_CAP_USER_INDEX_BUFFERS removal
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/svga/svga_pipe_draw.c b/src/gallium/drivers/svga/svga_pipe_draw.c
index bbd4430..b9637b2 100644
--- a/src/gallium/drivers/svga/svga_pipe_draw.c
+++ b/src/gallium/drivers/svga/svga_pipe_draw.c
@@ -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)) {
More information about the mesa-commit
mailing list