tnl: assert that num_instances > 0

This commit is contained in:
Brian Paul
2011-01-17 09:40:16 -07:00
parent 72f2551017
commit 6179f7e38e
+2
View File
@@ -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.
*/