projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78c5841
)
Relax assertion to account for empty primitives.
author
Keith Whitwell
<keith@tungstengraphics.com>
Sat, 6 Dec 2003 12:58:47 +0000
(12:58 +0000)
committer
Keith Whitwell
<keith@tungstengraphics.com>
Sat, 6 Dec 2003 12:58:47 +0000
(12:58 +0000)
src/mesa/tnl/t_save_api.c
patch
|
blob
|
history
diff --git
a/src/mesa/tnl/t_save_api.c
b/src/mesa/tnl/t_save_api.c
index 5f015ddc46635d7a58ae5a691e7e82756c418e86..e95c1c98eb09c2e98ceaa29338c6f3b93a300d9c 100644
(file)
--- 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:
*/