aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--OpenAL32/alFilter.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/OpenAL32/alFilter.c b/OpenAL32/alFilter.c
index dd338e8d..bdb0b47d 100644
--- a/OpenAL32/alFilter.c
+++ b/OpenAL32/alFilter.c
@@ -187,7 +187,7 @@ AL_API ALvoid AL_APIENTRY alFilteriv(ALuint filter, ALenum param, ALint *piValue
return;
}
- Context = GetLockedContext();
+ Context = GetContextRef();
if(!Context) return;
Device = Context->Device;
@@ -203,7 +203,7 @@ AL_API ALvoid AL_APIENTRY alFilteriv(ALuint filter, ALenum param, ALint *piValue
else
alSetError(Context, AL_INVALID_NAME);
- UnlockContext(Context);
+ ALCcontext_DecRef(Context);
}
AL_API ALvoid AL_APIENTRY alFilterf(ALuint filter, ALenum param, ALfloat flValue)
@@ -268,7 +268,7 @@ AL_API ALvoid AL_APIENTRY alGetFilteri(ALuint filter, ALenum param, ALint *piVal
ALCdevice *Device;
ALfilter *ALFilter;
- Context = GetLockedContext();
+ Context = GetContextRef();
if(!Context) return;
Device = Context->Device;
@@ -288,7 +288,7 @@ AL_API ALvoid AL_APIENTRY alGetFilteri(ALuint filter, ALenum param, ALint *piVal
else
alSetError(Context, AL_INVALID_NAME);
- UnlockContext(Context);
+ ALCcontext_DecRef(Context);
}
AL_API ALvoid AL_APIENTRY alGetFilteriv(ALuint filter, ALenum param, ALint *piValues)
@@ -303,7 +303,7 @@ AL_API ALvoid AL_APIENTRY alGetFilteriv(ALuint filter, ALenum param, ALint *piVa
return;
}
- Context = GetLockedContext();
+ Context = GetContextRef();
if(!Context) return;
Device = Context->Device;
@@ -319,7 +319,7 @@ AL_API ALvoid AL_APIENTRY alGetFilteriv(ALuint filter, ALenum param, ALint *piVa
else
alSetError(Context, AL_INVALID_NAME);
- UnlockContext(Context);
+ ALCcontext_DecRef(Context);
}
AL_API ALvoid AL_APIENTRY alGetFilterf(ALuint filter, ALenum param, ALfloat *pflValue)