Use a more appropriate error for trying to delete an effect slot that's in use

This commit is contained in:
Chris Robinson
2011-08-30 20:57:14 -07:00
parent 16dc73ff48
commit a32a3bcda8
+1 -1
View File
@@ -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;
}