summaryrefslogtreecommitdiffstats
path: root/OpenAL32/alSource.c
diff options
context:
space:
mode:
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r--OpenAL32/alSource.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index e45cbcd9..2fc28e53 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -86,14 +86,7 @@ AL_API ALvoid AL_APIENTRY alGenSources(ALsizei n,ALuint *sources)
err = NewThunkEntry(&source->source);
if(err == AL_NO_ERROR)
- {
- LockContext(Context);
- if(Device->MaxNoOfSources == (ALuint)Context->SourceMap.size)
- err = AL_INVALID_VALUE;
- else
- err = InsertUIntMapEntry(&Context->SourceMap, source->source, source);
- UnlockContext(Context);
- }
+ err = InsertUIntMapEntry(&Context->SourceMap, source->source, source);
if(err != AL_NO_ERROR)
{
FreeThunkEntry(source->source);