aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alAuxEffectSlot.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-04-11 18:16:05 -0700
committerChris Robinson <[email protected]>2009-04-11 18:16:05 -0700
commit30f57d0824826c38d8991f041ea8870e19b44033 (patch)
tree56a9ccc9e009a56853aeba1654aca5b92bdc94df /OpenAL32/alAuxEffectSlot.c
parent1c540181116a875f708890bc9c380b71cd1fd6ba (diff)
Make auxiliary effect slot count configurable
Diffstat (limited to 'OpenAL32/alAuxEffectSlot.c')
-rw-r--r--OpenAL32/alAuxEffectSlot.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/OpenAL32/alAuxEffectSlot.c b/OpenAL32/alAuxEffectSlot.c
index 65db34b3..85a7c6ee 100644
--- a/OpenAL32/alAuxEffectSlot.c
+++ b/OpenAL32/alAuxEffectSlot.c
@@ -50,8 +50,7 @@ ALvoid AL_APIENTRY alGenAuxiliaryEffectSlots(ALsizei n, ALuint *effectslots)
if (n > 0)
{
- /* NOTE: We only support one slot currently */
- if(n == 1 && Context->AuxiliaryEffectSlotCount == 0)
+ if(Context->AuxiliaryEffectSlotCount+n <= Context->AuxiliaryEffectSlotMax)
{
// Check that enough memory has been allocted in the 'effectslots' array for n Effect Slots
if (!IsBadWritePtr((void*)effectslots, n * sizeof(ALuint)))