diff options
author | Chris Robinson <[email protected]> | 2010-03-16 19:14:05 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-03-16 19:14:05 -0700 |
commit | 49321961e85b92cb04ce51baf741a6e34c6a6388 (patch) | |
tree | 668f88e4b471fcb28a54b2dfaad9711725b99b3e /OpenAL32/alEffect.c | |
parent | 65f43637ceeaf4042c5fb5e02cb2fb2ccc496a64 (diff) |
Effect and filter ID 0 is valid
Diffstat (limited to 'OpenAL32/alEffect.c')
-rw-r--r-- | OpenAL32/alEffect.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/OpenAL32/alEffect.c b/OpenAL32/alEffect.c index eb430c62..f4a60e2b 100644 --- a/OpenAL32/alEffect.c +++ b/OpenAL32/alEffect.c @@ -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); |