diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2003-12-06 12:58:47 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2003-12-06 12:58:47 +0000 |
commit | fe54ba39522f6ebed447e083936d88b07b46189b (patch) | |
tree | 2b0e67e18861179e2961730282b74b977ea972c4 /src/mesa | |
parent | 78c58413649838ff83e416e5a76d5cf15ee89b87 (diff) | |
download | external_mesa3d-fe54ba39522f6ebed447e083936d88b07b46189b.zip external_mesa3d-fe54ba39522f6ebed447e083936d88b07b46189b.tar.gz external_mesa3d-fe54ba39522f6ebed447e083936d88b07b46189b.tar.bz2 |
Relax assertion to account for empty primitives.
Diffstat (limited to 'src/mesa')
-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 5f015dd..e95c1c9 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: */ |