diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-03-16 21:48:28 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-03-16 22:21:16 +0300 |
commit | b9af4efe41712680d554a389d771e83c66fce5c4 (patch) | |
tree | f9d674783ad32b3c7dafe7916d9937bd1dbdab73 /source/blender/draw/intern | |
parent | ad390f514bfa33abadfd09e8fd673a0cfee68b39 (diff) |
Cleanup: fix compiler warnings.
Diffstat (limited to 'source/blender/draw/intern')
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl_mesh.c | 2 | ||||
-rw-r--r-- | source/blender/draw/intern/draw_common.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_mesh.c b/source/blender/draw/intern/draw_cache_impl_mesh.c index 890181a532a..7c1ef09aaa7 100644 --- a/source/blender/draw/intern/draw_cache_impl_mesh.c +++ b/source/blender/draw/intern/draw_cache_impl_mesh.c @@ -2140,7 +2140,7 @@ static void mesh_create_edit_vertex_loops( uchar fflag; /* Static formats */ - static struct { GPUVertFormat sel_id, pos_nor, lnor, flag, uv; } format = { 0 }; + static struct { GPUVertFormat sel_id, pos_nor, lnor, flag, uv; } format = {{ 0 }}; static struct { uint sel_id, pos, nor, lnor, data, uvs; } attr_id; if (format.sel_id.attr_len == 0) { attr_id.sel_id = GPU_vertformat_attr_add(&format.sel_id, "color", GPU_COMP_U32, 1, GPU_FETCH_INT); diff --git a/source/blender/draw/intern/draw_common.c b/source/blender/draw/intern/draw_common.c index 849087d39af..2d1316f9406 100644 --- a/source/blender/draw/intern/draw_common.c +++ b/source/blender/draw/intern/draw_common.c @@ -41,7 +41,7 @@ ARRAY_SET_ITEMS(v4, (float)r / 255.0f, (float)g / 255.0f, (float)b / 255.0f, (float)a / 255.0f) /* Colors & Constant */ -struct DRW_Global G_draw = {0}; +struct DRW_Global G_draw = {{{0}}}; static bool weight_ramp_custom = false; static ColorBand weight_ramp_copy; |