mesa: clean-up vertex array object VBO unbinding and delete/refcounting
authorBrian Paul <brianp@vmware.com>
Wed, 13 May 2009 15:32:53 +0000 (09:32 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 13 May 2009 15:32:53 +0000 (09:32 -0600)
commit7ae4ce9e22e39d78e2d31164c05a3b267fb48e3c
treeffa93f6eb28b0551c171166a89f45872fb812038
parent5568f2f601fbd974af402da92548904f6fafc6dc
mesa: clean-up vertex array object VBO unbinding and delete/refcounting

Don't really delete vertex array objects until the refcount hits zero.
At that time, unbind any pointers to VBOs.
(cherry picked from commit 32b851c80792623195069d7a41a5808cff3b2f6f)
src/mesa/main/arrayobj.c