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:
Brian Paul
2009-06-10 13:46:04 -06:00
parent 0854b7e972
commit 05f0d90962

View File

@@ -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();