mesa: Enable true refcounting for NullBufferObj.
authorMichal Krol <michal@vmware.com>
Tue, 9 Feb 2010 13:25:41 +0000 (14:25 +0100)
committerMichal Krol <michal@vmware.com>
Tue, 9 Feb 2010 13:52:52 +0000 (14:52 +0100)
commit01d7e3d5a25a7cc49b38f5561d00c2ff22c43e93
treecaa96a292b385ab401544714bdb907b1d6ee478f
parenteeec2c3d951fed0d22e5dbf436d4a2d887e24221
mesa: Enable true refcounting for NullBufferObj.

This object can be shared with another context, so we cannot just
delete it when the owning context is being destroyed.

Ensuring that buffer objects are properly refcounted guarantees
NullBufferObj is destroyed when all references to it are removed.
src/mesa/main/arrayobj.c
src/mesa/main/bufferobj.c
src/mesa/main/bufferobj.h
src/mesa/main/context.c
src/mesa/main/pixel.c
src/mesa/main/shared.c
src/mesa/vbo/vbo_context.c
src/mesa/vbo/vbo_exec_api.c