From: Brian Paul Date: Wed, 10 Jun 2009 19:46:04 +0000 (-0600) Subject: mesa: use larger initial refcount for NullBufferObj X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=05f0d90962147ad61050bbcde42775a3422e68a5;p=mesa.git mesa: use larger initial refcount for NullBufferObj Refcounting of the null/default buffer object isn't perfect yet so be extra safe. --- diff --git a/src/mesa/main/shared.c b/src/mesa/main/shared.c index 759883743da..731a1540408 100644 --- a/src/mesa/main/shared.c +++ b/src/mesa/main/shared.c @@ -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();