mesa: use larger initial refcount for NullBufferObj
authorBrian Paul <brianp@vmware.com>
Wed, 10 Jun 2009 19:46:04 +0000 (13:46 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 12 Jun 2009 22:01:02 +0000 (16:01 -0600)
Refcounting of the null/default buffer object isn't perfect yet so be
extra safe.

src/mesa/main/shared.c

index 759883743dae4b3be18c7eac6d795dc3699286d1..731a15404081736cddd7c0722654b086d3e56963 100644 (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();