diff options
author | Keith Whitwell <[email protected]> | 2003-12-06 12:58:47 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2003-12-06 12:58:47 +0000 |
commit | fe54ba39522f6ebed447e083936d88b07b46189b (patch) | |
tree | 2b0e67e18861179e2961730282b74b977ea972c4 /src | |
parent | 78c58413649838ff83e416e5a76d5cf15ee89b87 (diff) |
Relax assertion to account for empty primitives.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/tnl/t_save_api.c | 3 |
1 files changed, 2 insertions, 1 deletions
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: */ |