Store buffers with the context instead of the device
commit86972d000fb55640c8cfa51df119f1ce3db41f1a
authorChris Robinson <chris.kcat@gmail.com>
Thu, 19 Nov 2015 21:49:50 +0000 (19 13:49 -0800)
committerChris Robinson <chris.kcat@gmail.com>
Thu, 19 Nov 2015 21:49:50 +0000 (19 13:49 -0800)
tree6229748ae297de286c1ec23b21f56fe725cf4a31
parent9a4d98d5ff3bf13884f0268e1036d55f43e8f851
Store buffers with the context instead of the device

Although OpenAL shares buffers between contexts of the same device, there's
some pitfalls with the async buffer loading that could deadlock an app (such as
changing the current context without thread-local context support and trying to
remove a buffer through that context when it hasn't fully loaded yet).
src/context.cpp
src/context.h
src/device.cpp
src/device.h