From: Brian Paul Date: Mon, 17 Jan 2011 16:40:16 +0000 (-0700) Subject: tnl: assert that num_instances > 0 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6179f7e38e78eea6fb06180fca3c8b1e78d25f2b;p=mesa.git tnl: assert that num_instances > 0 --- 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. */