diff options
author | Daniel Borca <[email protected]> | 2004-01-08 09:04:27 +0000 |
---|---|---|
committer | Daniel Borca <[email protected]> | 2004-01-08 09:04:27 +0000 |
commit | 2fa774edba710b32bc6999a65b92ade2db415589 (patch) | |
tree | 43955577c066a9cf7d83820b08e120972274fd26 /src | |
parent | a71d4445b4c1666702f308a4ef462f5722ad4b80 (diff) |
keeping things safe: sanity check back
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/tnl/t_save_api.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/tnl/t_save_api.c b/src/mesa/tnl/t_save_api.c index 08a5036c6d1..8901741ffe5 100644 --- a/src/mesa/tnl/t_save_api.c +++ b/src/mesa/tnl/t_save_api.c @@ -440,6 +440,8 @@ static void _save_upgrade_vertex( GLcontext *ctx, tnl->save.vertex_size += newsz - oldsz; tnl->save.counter = ((SAVE_BUFFER_SIZE - tnl->save.vertex_store->used) / tnl->save.vertex_size); + if (tnl->save.counter > ctx->Const.MaxArrayLockSize ) + tnl->save.counter = ctx->Const.MaxArrayLockSize; tnl->save.initial_counter = tnl->save.counter; |