Gawain: Fix crash in release build.

Non-initiliazed var, I thought I was clever than this. :(
This commit is contained in:
Clément Foucault 2017-05-17 01:43:49 +02:00
parent 58a810e640
commit c8bf3984ee
1 changed files with 5 additions and 0 deletions

View File

@ -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
}