projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72f2551
)
tnl: assert that num_instances > 0
author
Brian Paul
<brianp@vmware.com>
Mon, 17 Jan 2011 16:40:16 +0000
(09:40 -0700)
committer
Brian Paul
<brianp@vmware.com>
Mon, 17 Jan 2011 16:40:16 +0000
(09:40 -0700)
src/mesa/tnl/t_draw.c
patch
|
blob
|
history
diff --git
a/src/mesa/tnl/t_draw.c
b/src/mesa/tnl/t_draw.c
index
bdb893e
..
858b828
100644
(file)
--- a/
src/mesa/tnl/t_draw.c
+++ b/
src/mesa/tnl/t_draw.c
@@
-468,6
+468,8
@@
void _tnl_draw_prims( struct gl_context *ctx,
break;
}
+ assert(prim[i].num_instances > 0);
+
/* Binding inputs may imply mapping some vertex buffer objects.
* They will need to be unmapped below.
*/