mesa: Fix multithreaded buffer object refcounting.
authorMathias Fröhlich <Mathias.Froehlich@web.de>
Wed, 19 Oct 2011 05:54:20 +0000 (07:54 +0200)
committerMathias Fröhlich <Mathias.Froehlich@web.de>
Sun, 23 Oct 2011 19:35:05 +0000 (21:35 +0200)
commit597df3efdaa06d7c6a834bcaed8e6d5806be0cb5
tree32986601ebdf7eef8b3d353738eb16d9e72eb56f
parent21e3c585f7c59fa909f6bb485a99bad33119a186
mesa: Fix multithreaded buffer object refcounting.

Buffer objects may be shared across contexts.
Rework the array attrib push/pop implementation
to be thread safe. Make use of more library functions
for this purpose.

Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/attrib.c