diff options
author | Brian Paul <[email protected]> | 2011-01-17 09:40:16 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-01-17 09:40:16 -0700 |
commit | 6179f7e38e78eea6fb06180fca3c8b1e78d25f2b (patch) | |
tree | 94a4ce3dd001b82533042c2ec12df3f9b087e831 /src/mesa | |
parent | 72f2551017e03f888d63fa9040120740c6d40620 (diff) |
tnl: assert that num_instances > 0
Diffstat (limited to 'src/mesa')
-rw-r--r-- | 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 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. */ |