tnl: assert that num_instances > 0
authorBrian Paul <brianp@vmware.com>
Mon, 17 Jan 2011 16:40:16 +0000 (09:40 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 17 Jan 2011 16:40:16 +0000 (09:40 -0700)
src/mesa/tnl/t_draw.c

index bdb893e..858b828 100644 (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.
          */