Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2017-05-17 02:43:49 +0300
committerClément Foucault <foucault.clem@gmail.com>2017-05-17 02:43:49 +0300
commitc8bf3984ee806cd035c47aa5d7f99828f5667dd7 (patch)
treef9c8c27b62e9a9d6e70437dd775039d666f61d35 /intern/gawain
parent58a810e64033488020d9a7417e0e50987e870546 (diff)
Gawain: Fix crash in release build.
Non-initiliazed var, I thought I was clever than this. :(
Diffstat (limited to 'intern/gawain')
-rw-r--r--intern/gawain/src/vertex_format.c5
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
}