Relax assertion to account for empty primitives.
authorKeith Whitwell <keith@tungstengraphics.com>
Sat, 6 Dec 2003 12:58:47 +0000 (12:58 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Sat, 6 Dec 2003 12:58:47 +0000 (12:58 +0000)
src/mesa/tnl/t_save_api.c

index 5f015ddc46635d7a58ae5a691e7e82756c418e86..e95c1c98eb09c2e98ceaa29338c6f3b93a300d9c 100644 (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:
     */