summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2003-12-06 12:58:47 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2003-12-06 12:58:47 +0000
commitfe54ba39522f6ebed447e083936d88b07b46189b (patch)
tree2b0e67e18861179e2961730282b74b977ea972c4 /src/mesa
parent78c58413649838ff83e416e5a76d5cf15ee89b87 (diff)
Relax assertion to account for empty primitives.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/tnl/t_save_api.c3
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 5f015ddc46..e95c1c98eb 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:
*/