diff options
Diffstat (limited to 'intern/gawain/src/gwn_vertex_format.c')
-rw-r--r-- | intern/gawain/src/gwn_vertex_format.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/gawain/src/gwn_vertex_format.c b/intern/gawain/src/gwn_vertex_format.c index ff534673294..4694bc22b2b 100644 --- a/intern/gawain/src/gwn_vertex_format.c +++ b/intern/gawain/src/gwn_vertex_format.c @@ -136,7 +136,7 @@ unsigned GWN_vertformat_attr_add(Gwn_VertFormat* format, const char* name, Gwn_V assert(format->name_ct < GWN_VERT_ATTR_MAX_LEN); // there's room for more assert(format->attrib_ct < GWN_VERT_ATTR_MAX_LEN); // there's room for more assert(!format->packed); // packed means frozen/locked - assert((comp_ct >= 1 && comp_ct <= 4) || comp_ct == 16); + assert((comp_ct >= 1 && comp_ct <= 4) || comp_ct == 8 || comp_ct == 12 || comp_ct == 16); switch (comp_type) { case GWN_COMP_F32: @@ -153,7 +153,7 @@ unsigned GWN_vertformat_attr_add(Gwn_VertFormat* format, const char* name, Gwn_V // integer types can be kept as int or converted/normalized to float assert(fetch_mode != GWN_FETCH_FLOAT); // only support float matrices (see Batch_update_program_bindings) - assert(comp_ct != 16); + assert(comp_ct != 8 && comp_ct != 12 && comp_ct != 16); } #endif format->name_ct++; // multiname support |