aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alFilter.c
diff options
context:
space:
mode:
Diffstat (limited to 'OpenAL32/alFilter.c')
-rw-r--r--OpenAL32/alFilter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/alFilter.c b/OpenAL32/alFilter.c
index 995d1851..6b3f8620 100644
--- a/OpenAL32/alFilter.c
+++ b/OpenAL32/alFilter.c
@@ -139,13 +139,13 @@ AL_API ALboolean AL_APIENTRY alIsFilter(ALuint filter)
ALCcontext *Context;
ALboolean result;
- Context = GetLockedContext();
+ Context = GetReffedContext();
if(!Context) return AL_FALSE;
result = ((!filter || LookupFilter(Context->Device->FilterMap, filter)) ?
AL_TRUE : AL_FALSE);
- UnlockContext(Context);
+ ALCcontext_DecRef(Context);
return result;
}