mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02:00
mesa: use larger initial refcount for NullBufferObj
Refcounting of the null/default buffer object isn't perfect yet so be extra safe.
This commit is contained in:
parent
0854b7e972
commit
05f0d90962
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ _mesa_alloc_shared_state(GLcontext *ctx)
|
|||
* XXX with recent/improved refcounting this may not longer be needed.
|
||||
*/
|
||||
shared->NullBufferObj = _mesa_new_buffer_object(ctx, 0, 0);
|
||||
shared->NullBufferObj->RefCount = 1000;
|
||||
shared->NullBufferObj->RefCount = 1000 * 1000 * 1000;
|
||||
|
||||
shared->ArrayObjects = _mesa_NewHashTable();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue