From: Keith Whitwell Date: Sat, 6 Dec 2003 12:58:47 +0000 (+0000) Subject: Relax assertion to account for empty primitives. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fe54ba39522f6ebed447e083936d88b07b46189b;p=mesa.git Relax assertion to account for empty primitives. --- diff --git a/src/mesa/tnl/t_save_api.c b/src/mesa/tnl/t_save_api.c index 5f015ddc466..e95c1c98eb0 100644 --- a/src/mesa/tnl/t_save_api.c +++ b/src/mesa/tnl/t_save_api.c @@ -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: */