From 05f0d90962147ad61050bbcde42775a3422e68a5 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 10 Jun 2009 13:46:04 -0600 Subject: [PATCH] mesa: use larger initial refcount for NullBufferObj Refcounting of the null/default buffer object isn't perfect yet so be extra safe. --- src/mesa/main/shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.30.2