From 49321961e85b92cb04ce51baf741a6e34c6a6388 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 16 Mar 2010 19:14:05 -0700 Subject: Effect and filter ID 0 is valid --- OpenAL32/alFilter.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'OpenAL32/alFilter.c') diff --git a/OpenAL32/alFilter.c b/OpenAL32/alFilter.c index 8b3097d3..75385418 100644 --- a/OpenAL32/alFilter.c +++ b/OpenAL32/alFilter.c @@ -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; -- cgit v1.2.3