Relax assertion to account for empty primitives.

This commit is contained in:
Keith Whitwell 2003-12-06 12:58:47 +00:00
parent 78c5841364
commit fe54ba3952

View file

@ -252,7 +252,8 @@ static void _save_compile_vertex_list( GLcontext *ctx )
node->vertex_store->refcount++;
node->prim_store->refcount++;
assert(node->attrsz[_TNL_ATTRIB_POS] != 0);
assert(node->attrsz[_TNL_ATTRIB_POS] != 0 ||
node->count == 0);
/* Maybe calculate normal lengths:
*/