diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-05-17 02:43:49 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-05-17 02:43:49 +0300 |
commit | c8bf3984ee806cd035c47aa5d7f99828f5667dd7 (patch) | |
tree | f9c8c27b62e9a9d6e70437dd775039d666f61d35 | |
parent | 58a810e64033488020d9a7417e0e50987e870546 (diff) |
Gawain: Fix crash in release build.
Non-initiliazed var, I thought I was clever than this. :(
-rw-r--r-- | intern/gawain/src/vertex_format.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/gawain/src/vertex_format.c b/intern/gawain/src/vertex_format.c index d103d7a98a6..7fea0d393e4 100644 --- a/intern/gawain/src/vertex_format.c +++ b/intern/gawain/src/vertex_format.c @@ -29,6 +29,11 @@ void VertexFormat_clear(VertexFormat* format) format->packed = false; format->name_offset = 0; format->name_ct = 0; + + for (unsigned i = 0; i < MAX_VERTEX_ATTRIBS; i++) + { + format->attribs[i].name_ct = 0; + } #endif } |