Module: Mesa Branch: master Commit: 05f0d90962147ad61050bbcde42775a3422e68a5 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=05f0d90962147ad61050bbcde42775a3422e68a5
Author: Brian Paul <[email protected]> Date: Wed Jun 10 13:46:04 2009 -0600 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 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/mesa/main/shared.c b/src/mesa/main/shared.c index 7598837..731a154 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(); _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
