diff options
author | Chris Robinson <[email protected]> | 2011-08-22 07:40:14 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-08-22 07:40:14 -0700 |
commit | 199df253caad196162b02d61fd7ed06606193890 (patch) | |
tree | a7ef47822a1593b600c440da9cc2f0e5586df8be /OpenAL32/alAuxEffectSlot.c | |
parent | c1f435cc18df4e2597d166b8b1c8a0d4ba9b23a6 (diff) |
Always use the thunk functions to get object IDs
Diffstat (limited to 'OpenAL32/alAuxEffectSlot.c')
-rw-r--r-- | OpenAL32/alAuxEffectSlot.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenAL32/alAuxEffectSlot.c b/OpenAL32/alAuxEffectSlot.c index 0d67423e..edd29fb2 100644 --- a/OpenAL32/alAuxEffectSlot.c +++ b/OpenAL32/alAuxEffectSlot.c @@ -68,12 +68,12 @@ AL_API ALvoid AL_APIENTRY alGenAuxiliaryEffectSlots(ALsizei n, ALuint *effectslo break; } - err = ALTHUNK_NEWENTRY(slot, &slot->effectslot); + err = NewThunkEntry(&slot->effectslot); if(err == AL_NO_ERROR) err = InsertUIntMapEntry(&Context->EffectSlotMap, slot->effectslot, slot); if(err != AL_NO_ERROR) { - ALTHUNK_REMOVEENTRY(slot->effectslot); + FreeThunkEntry(slot->effectslot); ALEffect_Destroy(slot->EffectState); free(slot); @@ -146,7 +146,7 @@ AL_API ALvoid AL_APIENTRY alDeleteAuxiliaryEffectSlots(ALsizei n, ALuint *effect ALEffect_Destroy(EffectSlot->EffectState); RemoveUIntMapKey(&Context->EffectSlotMap, EffectSlot->effectslot); - ALTHUNK_REMOVEENTRY(EffectSlot->effectslot); + FreeThunkEntry(EffectSlot->effectslot); memset(EffectSlot, 0, sizeof(ALeffectslot)); free(EffectSlot); @@ -533,7 +533,7 @@ ALvoid ReleaseALAuxiliaryEffectSlots(ALCcontext *Context) // Release effectslot structure ALEffect_Destroy(temp->EffectState); - ALTHUNK_REMOVEENTRY(temp->effectslot); + FreeThunkEntry(temp->effectslot); memset(temp, 0, sizeof(ALeffectslot)); free(temp); } |