projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
292c24d
)
svga: fix MSVC build error after PIPE_CAP_USER_INDEX_BUFFERS removal
author
Brian Paul
<brianp@vmware.com>
Sat, 25 Feb 2017 02:02:39 +0000
(19:02 -0700)
committer
Brian 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
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/svga/svga_pipe_draw.c
b/src/gallium/drivers/svga/svga_pipe_draw.c
index bbd443049507da7dcbaa0bb0b655c780fc7189e4..b9637b25b344ff846a60f86dc71011f18f3d8f03 100644
(file)
--- 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)) {