summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-01-17 09:40:16 -0700
committerBrian Paul <[email protected]>2011-01-17 09:40:16 -0700
commit6179f7e38e78eea6fb06180fca3c8b1e78d25f2b (patch)
tree94a4ce3dd001b82533042c2ec12df3f9b087e831 /src/mesa/tnl
parent72f2551017e03f888d63fa9040120740c6d40620 (diff)
tnl: assert that num_instances > 0
Diffstat (limited to 'src/mesa/tnl')
-rw-r--r--src/mesa/tnl/t_draw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/tnl/t_draw.c b/src/mesa/tnl/t_draw.c
index bdb893eba22..858b8281da3 100644
--- 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.
*/