Track all references for effect states
commit4e4e597fa54cc3498ae28bea9c2684e1fee05389
authorChris Robinson <chris.kcat@gmail.com>
Thu, 25 Aug 2016 11:57:58 +0000 (25 04:57 -0700)
committerChris Robinson <chris.kcat@gmail.com>
Thu, 25 Aug 2016 11:57:58 +0000 (25 04:57 -0700)
tree16757d48abbc6f70ae37bd6903811dd465ff8447
parent0fbf34fb4592aa29fcbf4e725719cb253e7d3a78
Track all references for effect states

This allows us to not have to play around with trying to avoid duplicate state
pointers, since the reference count will ensure they're deleted as appropriate.
The only caveat is that the mixer is not allowed to decrement references, since
that can cause the object to be freed (which the mixer code is not allowed to
do).
Alc/ALu.c
OpenAL32/alAuxEffectSlot.c