aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-09-10 21:21:07 -0700
committerChris Robinson <[email protected]>2011-09-10 21:21:07 -0700
commit3a8ef2f0d68914ef31b899a1f871aa12c57ff39d (patch)
tree9aa8b96ae74b2c45ca64924d4661d865d2f0d0c3 /OpenAL32
parent4c8e6dead1742a2f363049a01e4ef18ae377b436 (diff)
Initialize source parameters before adding the source to the map
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/alBuffer.c1
-rw-r--r--OpenAL32/alSource.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/OpenAL32/alBuffer.c b/OpenAL32/alBuffer.c
index 455cf166..c65be881 100644
--- a/OpenAL32/alBuffer.c
+++ b/OpenAL32/alBuffer.c
@@ -177,6 +177,7 @@ AL_API ALvoid AL_APIENTRY alGenBuffers(ALsizei n, ALuint *buffers)
alDeleteBuffers(i, buffers);
break;
}
+
buffers[i++] = buffer->buffer;
}
}
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index 5217b563..e024c9cc 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -83,6 +83,7 @@ AL_API ALvoid AL_APIENTRY alGenSources(ALsizei n,ALuint *sources)
alDeleteSources(i, sources);
break;
}
+ InitSourceParams(source);
err = NewThunkEntry(&source->source);
if(err == AL_NO_ERROR)
@@ -98,7 +99,6 @@ AL_API ALvoid AL_APIENTRY alGenSources(ALsizei n,ALuint *sources)
break;
}
- InitSourceParams(source);
sources[i++] = source->source;
}
}