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 bdb893eba222e9b86f9555bcd9dc25e81dd26428..858b8281da3d9f029deb808d0ecc5982898916da 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.
          */