aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alAuxEffectSlot.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-08-29 23:05:47 -0700
committerChris Robinson <[email protected]>2011-08-29 23:10:02 -0700
commitcc67f4589256efceb17c58673159b3e687ec0436 (patch)
treefe7c3688ac00bdb6ee0fc9766216ab4b9f9144b8 /OpenAL32/alAuxEffectSlot.c
parentc6a110ec59c794f08446bd8bb9d90958903984c9 (diff)
Use the reference counting functions for the buffer and auxiliary slot refs
Diffstat (limited to 'OpenAL32/alAuxEffectSlot.c')
-rw-r--r--OpenAL32/alAuxEffectSlot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/alAuxEffectSlot.c b/OpenAL32/alAuxEffectSlot.c
index edd29fb2..f34f4d09 100644
--- a/OpenAL32/alAuxEffectSlot.c
+++ b/OpenAL32/alAuxEffectSlot.c
@@ -94,7 +94,7 @@ AL_API ALvoid AL_APIENTRY alGenAuxiliaryEffectSlots(ALsizei n, ALuint *effectslo
slot->ClickRemoval[j] = 0.0f;
slot->PendingClicks[j] = 0.0f;
}
- slot->refcount = 0;
+ slot->ref = 0;
}
}
@@ -125,7 +125,7 @@ AL_API ALvoid AL_APIENTRY alDeleteAuxiliaryEffectSlots(ALsizei n, ALuint *effect
SlotsValid = AL_FALSE;
break;
}
- else if(EffectSlot->refcount > 0)
+ else if(EffectSlot->ref != 0)
{
alSetError(Context, AL_INVALID_NAME);
SlotsValid = AL_FALSE;