mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
sanity check for vertex counter
This commit is contained in:
parent
722cb89a13
commit
17f2e55009
1 changed files with 4 additions and 0 deletions
|
|
@ -440,6 +440,10 @@ 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);
|
||||
/* [dBorca] begin shameless plug */
|
||||
if (tnl->save.counter > ctx->Const.MaxArrayLockSize )
|
||||
tnl->save.counter = ctx->Const.MaxArrayLockSize;
|
||||
/* [dBorca] end shameless plug */
|
||||
tnl->save.initial_counter = tnl->save.counter;
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue