Module: Mesa Branch: master Commit: 6179f7e38e78eea6fb06180fca3c8b1e78d25f2b URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6179f7e38e78eea6fb06180fca3c8b1e78d25f2b
Author: Brian Paul <[email protected]> Date: Mon Jan 17 09:40:16 2011 -0700 tnl: assert that num_instances > 0 --- src/mesa/tnl/t_draw.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/mesa/tnl/t_draw.c b/src/mesa/tnl/t_draw.c index bdb893e..858b828 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. */ _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
