diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-02-11 07:15:26 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-02-14 20:59:41 +0300 |
commit | 27a7174546d1f007eb4a1fd084ce5b6d470aae25 (patch) | |
tree | bb27fbc5bcd3b6a41bcc080887be6e762e6ec03a /intern | |
parent | a5afe13e1c42eedcd9b26e172292c3ba58640679 (diff) |
GWN: Fix style and line of code that does nothing!
Diffstat (limited to 'intern')
-rw-r--r-- | intern/gawain/src/gwn_vertex_format.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/intern/gawain/src/gwn_vertex_format.c b/intern/gawain/src/gwn_vertex_format.c index 36d53f9ee20..ff534673294 100644 --- a/intern/gawain/src/gwn_vertex_format.c +++ b/intern/gawain/src/gwn_vertex_format.c @@ -31,9 +31,7 @@ void GWN_vertformat_clear(Gwn_VertFormat* format) format->name_ct = 0; for (unsigned i = 0; i < GWN_VERT_ATTR_MAX_LEN; i++) - { format->attribs[i].name_ct = 0; - } #endif } @@ -43,13 +41,8 @@ void GWN_vertformat_copy(Gwn_VertFormat* dest, const Gwn_VertFormat* src) memcpy(dest, src, sizeof(Gwn_VertFormat)); for (unsigned i = 0; i < dest->attrib_ct; i++) - { - dest->attribs[i].name_ct = dest->attribs[i].name_ct; for (unsigned j = 0; j < dest->attribs[i].name_ct; j++) - { dest->attribs[i].name[j] = (char *)dest + (src->attribs[i].name[j] - ((char *)src)); - } - } } static GLenum convert_comp_type_to_gl(Gwn_VertCompType type) |