Effect and filter ID 0 is valid
This commit is contained in:
+4
-3
@@ -144,13 +144,14 @@ ALvoid AL_APIENTRY alDeleteEffects(ALsizei n, ALuint *effects)
|
||||
ALboolean AL_APIENTRY alIsEffect(ALuint effect)
|
||||
{
|
||||
ALCcontext *Context;
|
||||
ALboolean result;
|
||||
ALboolean result = AL_TRUE;
|
||||
|
||||
Context = GetContextSuspended();
|
||||
if(!Context) return AL_FALSE;
|
||||
|
||||
result = (VerifyEffect(Context->Device->EffectList, effect) ? AL_TRUE :
|
||||
AL_FALSE);
|
||||
if(effect)
|
||||
result = (VerifyEffect(Context->Device->EffectList, effect) ?
|
||||
AL_TRUE : AL_FALSE);
|
||||
|
||||
ProcessContext(Context);
|
||||
|
||||
|
||||
+5
-3
@@ -140,13 +140,15 @@ ALvoid AL_APIENTRY alDeleteFilters(ALsizei n, ALuint *filters)
|
||||
ALboolean AL_APIENTRY alIsFilter(ALuint filter)
|
||||
{
|
||||
ALCcontext *Context;
|
||||
ALboolean result;
|
||||
ALboolean result = AL_TRUE;
|
||||
|
||||
Context = GetContextSuspended();
|
||||
if(!Context) return AL_FALSE;
|
||||
|
||||
result = (VerifyFilter(Context->Device->FilterList, filter) ? AL_TRUE :
|
||||
AL_FALSE);
|
||||
if(filter)
|
||||
result = (VerifyFilter(Context->Device->FilterList, filter) ?
|
||||
AL_TRUE : AL_FALSE);
|
||||
|
||||
ProcessContext(Context);
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user