aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alAuxEffectSlot.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-08-30 20:57:14 -0700
committerChris Robinson <[email protected]>2011-08-30 20:57:14 -0700
commita32a3bcda87bc7ee56a13495b4afb3280aee9f9e (patch)
tree35cf47a5c13d2ff185d12e7bc4bc1843b04b72fa /OpenAL32/alAuxEffectSlot.c
parent16dc73ff486196ec424c6023db988d3b2ace67ac (diff)
Use a more appropriate error for trying to delete an effect slot that's in use
Diffstat (limited to 'OpenAL32/alAuxEffectSlot.c')
-rw-r--r--OpenAL32/alAuxEffectSlot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/alAuxEffectSlot.c b/OpenAL32/alAuxEffectSlot.c
index bbfccf11..88645163 100644
--- a/OpenAL32/alAuxEffectSlot.c
+++ b/OpenAL32/alAuxEffectSlot.c
@@ -141,7 +141,7 @@ AL_API ALvoid AL_APIENTRY alDeleteAuxiliaryEffectSlots(ALsizei n, ALuint *effect
}
else if(EffectSlot->ref != 0)
{
- alSetError(Context, AL_INVALID_NAME);
+ alSetError(Context, AL_INVALID_OPERATION);
n = 0;
break;
}